Data talk:I18n/DescriptionError.tab

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Updated translations

[edit]

@Jarekt: I've copied the changes made to Template:Description/i18n since you converted {{Description}} to use Lua. The documentation for {{Description}} still instructs editors to make their translations at {{Description/i18n}}. While {{TemplateBox}} has an i18n-method option to specify that localization is performed by Module:TNT, it doesn't have an option for translations handled by your Module:Core. It looks like ExE Boss added support for TNT to TemplateBox back in October, maybe something similar can be done for Core? Or maybe Core can use Module:TNT instead of having two methods for storing translations in Data namespace? —RP88 (talk) 03:12, 10 January 2022 (UTC)[reply]

RP88, You are right I forgot to change the documentation. I will try to alter TemplateBox and create more generic version of storing translations in the Data namespace. I like TNT but it uses almost 200 lines to accomplish what Core does in 8 (lines 188-196), and since Core is used on a lot of pages I am trying to beep it lightweight and not using any other modules. --Jarekt (talk) 03:45, 10 January 2022 (UTC)[reply]
OK, thanks for the info on Core. If you don't want Core to use TNT, I think there would be value in Core and TNT sharing a common schema for storing translations in Data namespace (which they may well already be doing, I haven't investigated). —RP88 (talk) 03:54, 10 January 2022 (UTC)[reply]
RP88, Core and TNT are already sharing a common schema for storing translations in Data namespace. The issue is that although {{TemplateBox/layout}} allows parameter to be used to store the name of the page in the data namespace, that parameter was not passed from the main {{TemplateBox}} template. I fixed that but a translation bot has to still add it to the translation pages. Once it does the documentation should loose the red-link. --Jarekt (talk) 04:30, 10 January 2022 (UTC)[reply]