This page has archives. Sections older than 90 days may be automatically archived by ClueBot III when more than 1 section is present. |
Non-Latin assistance needed
Eyes at Module talk:Political party § For languages not using latin would be appreciated, I am not sure how best to proceed. Primefac (talk) 14:55, 8 December 2024 (UTC)
Localization help needed for Module:Protection banner
Extended content
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Hello, I want to import Module:Protection banner on kowiki. (We are still using old Template:Pp-meta) I want both English and Korean parameters and values to work for compatibility, but it seems that the module is a little bit complicated. I checked the modules in other languages, but they all used only English parameters and values. Is it possible to make an i18n table for aliases?--Namoroka (talk) 18:11, 24 January 2025 (UTC)
- you may want to look at he:Module:תרגום יחידה. Basically it's a wrapper that accepts a module, function and a translation table names, and using the translation table invokes the function with a clone of original frame, augmented with translated params. For more details please read the documentation at the top. If i correctly understood your requirements, i think this module matches them to a T.
- Peace קיפודנחש (aka kipod) (talk) 15:51, 25 January 2025 (UTC)
- Thank you for your answer. I will take a look at the code you provided.--Namoroka (talk) 15:52, 25 January 2025 (UTC)
- oh, i forgot the disclaimer: i wrote it and tested it, but as far as i know, it is not actually used in production - I'm not very good at promoting my work. I can't guarantee you'll be happy, but i stil give it at least 82.73% chance.
- Peace קיפודנחש (aka kipod) (talk) 15:55, 25 January 2025 (UTC)
- An 82.73% probability is good enough for me. lol --Namoroka (talk) 15:57, 25 January 2025 (UTC)
- oh, one more thing: if you do adopt it, please let me know - i haven't bothered to generate WD item for this module, but if it gets migrated to other wikis i should.
- Peace קיפודנחש (aka kipod) (talk) 16:20, 25 January 2025 (UTC)
- I checked your module, and while it can be used for translating other modules, it seems that it cannot be used for Module:Protection banner since the value also needs to be translated.--Namoroka (talk) 11:22, 27 January 2025 (UTC)
- An 82.73% probability is good enough for me. lol --Namoroka (talk) 15:57, 25 January 2025 (UTC)
- Thank you for your answer. I will take a look at the code you provided.--Namoroka (talk) 15:52, 25 January 2025 (UTC)
You must be logged in to post a comment.