Using the Hour file-renaming token results in an internal error when LR is running in Polish or Russian. To reproduce on LR 13.3.1:
1. Set Preferences > General > Language to Polski and restart LR.
2. In Library, select a photo and do F2 (Rename Photo).
3. In the File Naming drop-down, select Edit (the last menu item).
4. Create the renaming template "Data (RRRRMMDD) - Godzina" (Godzina is Hour in Polish):
5. Click OK twice, and observe this error:
Translation: Internal error. AgDate.formatDatelnUserFormat: %W specifier not yet implemented.
6. Repeat the previous steps for Russian:
and observe this internal error:
* * *
This is a trivial bug to fix. In the corresponding TranslatedStrings files, all the other languages have
/AgNaming/Token/dateEvaluator_Hour set to %H (the Lua date-formatting code for "Hour with leading zero (24-hour clock)"). But the files for Polish and Russian have it set to %W and %T respectively, which are invalid formatting codes:
$ grep /AgNaming/Token/dateEvaluator_Hour *.lproj/*.txt
de.lproj/TranslatedStrings_Lr_de_DE.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
es.lproj/TranslatedStrings_Lr_es_ES.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
fr.lproj/TranslatedStrings_Lr_fr_FR.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
it.lproj/TranslatedStrings_Lr_it_IT.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
ja.lproj/TranslatedStrings_Lr_ja_JP.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
ko.lproj/TranslatedStrings_Lr_ko_KR.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
nb.lproj/TranslatedStrings_Lr_nb_NO.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
nl.lproj/TranslatedStrings_Lr_nl_NL.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
pl.lproj/TranslatedStrings_Lr_pl_PL.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%W"
pt.lproj/TranslatedStrings_Lr_pt_BR.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
ru.lproj/TranslatedStrings_Lr_ru_RU.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%Т"
sv.lproj/TranslatedStrings_Lr_sv_SE.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
th.lproj/TranslatedStrings_Lr_th_TH.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
zh_cn.lproj/TranslatedStrings_Lr_zh_CN.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"
zh_tw.lproj/TranslatedStrings_Lr_zh_TW.txt:"$$$/AgNaming/Token/dateEvaluator_Hour=%H"