User talk:Verdy p/archive4

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

Hi did you do this edit? Multichill (talk) 09:04, 19 January 2009 (UTC)[reply]

Yes. I did not see that you had placed a template for translating it (I did this because there are other places where such edits have been done, after looking on a discussion that wanted to place this code on this template, but the "autotranslate" template is quite new (I never noticed it before). Sorry. verdy_p (talk) 09:07, 19 January 2009 (UTC)[reply]
No problem, have a look at Commons:Template i18n (most used). Lot of templates already got converted. See {{Autotranslate}} on how to convert a template. Multichill (talk) 21:51, 19 January 2009 (UTC)[reply]
File:ActUp-Paris-01-Zap-Iran.jpg has been listed at Commons:Deletion requests so that the community can discuss whether it should be kept or not. We would appreciate it if you could go to voice your opinion about this at its entry.

If you created this file, please note that the fact that it has been proposed for deletion does not necessarily mean that we do not value your kind contribution. It simply means that one person believes that there is some specific problem with it, such as a copyright issue. Please see Commons:But it's my own work! for a guide on how to address these issues.

Please remember to respond to and – if appropriate – contradict the arguments supporting deletion. Arguments which focus on the nominator will not affect the result of the nomination. Thank you!

Herr Kriss (talk) 22:20, 21 June 2009 (UTC)[reply]

So you have deleted an image uploaded by its author, a member of Act-Up Paris, Act-Up Paris being also the author of the flyer.
You have not resisted to Iranian criminal threats !
Where are our democracy principles, and where are the principles of WikiMedia if you don't respect the authors and delete their own snapshots, when you perfectly know who took this photo and why ? verdy_p (talk) 10:03, 7 October 2009 (UTC)[reply]

What exactly is the thing you tried to improve by these edits? --Slomox (talk) 09:55, 7 October 2009 (UTC)[reply]

I have commented it appropriately ! the direction attribute gave invalid HTML because it used the language code as its default value; in addition, it was no longer working as expected. verdy_p (talk) 09:58, 7 October 2009 (UTC)[reply]
the direction attribute gave invalid HTML because it used the language code as its default value It didn't. Perhaps you've mistaken the template {{Dir}} for a parameter called {{{dir}}}. {{Dir}} always properly returns either 'rtl' or 'ltr'. --Slomox (talk) 10:15, 7 October 2009 (UTC)[reply]
No it was not doing that, or it was simply not working at all, Arabic was NOT shown RTL (the HTML generated confirmed this). Anyway it's true that such template could be used (I did not know that there was such template), but something was wrong in the code as it did not work. verdy_p (talk) 10:18, 7 October 2009 (UTC)[reply]
It worked. See User:Slomox/test5. That's the old code of the template and two test cases, one rtl, one ltr. It works just fine and the HTML code is fine too.
Besides some cosmetic changes your edit just introduced a new parameter {{{dir}}} and changed the template {{Dir}} into a hardcoded copy of {{Dir}}. And that's the reason, why I think, you misinterpreted the template as a parameter. What's the purpose of the new parameter? Is there any need for displaying English text rtl or Arabic ltr? Like this:
English: This is English rtl.
? --Slomox (talk) 11:09, 7 October 2009 (UTC)[reply]
The need is for displaying Arabic or Hebrew correctly. But there's another problem: some languages are multiscript, and are written for example in BOTH Arabic (RTL) and another LTR script. Without the parameter to change the default for these languages whose default script is Arabic, the description will be in the wrong direction is the LTR script is used instead. Example: Kashmiri whose default is the RTL script Arabic, but that is also as often written in Devanagari, and Gudjarati.
verdy_p (talk) 11:16, 7 October 2009 (UTC)[reply]
Note: your test currently uses the modified template, that's why it works. It did not before, and this was visible in all image descriptions, category pages and galleries that used the Template:Mld or Template:Ls directly. verdy_p (talk) 11:18, 7 October 2009 (UTC)[reply]
There are similar examples for Kurdish and other languages, frequently depending on the country where the same language is used (then each country has its own "default" standard script, and so its own RTL or LTR preference). One could of course create sub-language codes (by suffixing the script code), but for now, many of these languages don't have the full support for selecting the script explicitly. A lot of updates would be needed to disambiguate things. For now the dir parameter can solve a few things, or can help insert another default message in another script than its default one. verdy_p (talk) 11:23, 7 October 2009 (UTC)[reply]
Note: your test currently uses the modified template, that's why it works. It does not use the modified template. It always worked.
For the more well-supported multi-script languages like Kurdish there are subcodes like ku-arab and ku-latn. You should always use these subcodes when creating localisations or translations on Commons. There is no need to use any direction hacks when subcodes exist.
But you are right in that languages without subcodes yet like Kashmiri could benefit from an explicit 'dir' parameter. Although even then it would be better to create translations under appropiate codes like ks-arab and ks-deva. Users cannot specify these codes in their preferences, but we can redirect users with 'ks' specified in their preferences to the messages via the {{Fallback}} mechanism. --Slomox (talk) 12:03, 7 October 2009 (UTC)[reply]
For now, the dir parameter can help solve those tricky cases where there are no template support. You'll note that I have replaced the switch (to determine the default) by the call to the Template:dir, so this works as intended by your suggested sub-template. Anyway, the cause that it did not work must come from something else. I could not get any "dir" attribute in the generated HTML before the change, there must be some internal hack in Mediawiki that drops the dir attribute when a language code is specified in the same element. Now it just uses the CSS "direction:" style instead, to which the HTML dir attribute should be bound by default in all browsers (browsers that don't support CSS are very unlikely to support the dir attribute as well, the "direction:" CSS style is there since very long, as much as the "dir=" HTML attribute that was added and supported very late, because before it, HTML used the now deprecated BDO element). verdy_p (talk) 12:12, 7 October 2009 (UTC)[reply]
the dir parameter can help solve those tricky cases where there are no template support. Do you have any example where you want to use this? --Slomox (talk) 12:24, 7 October 2009 (UTC)[reply]