Hi all,
The script for collecting the translatable strings from the source code has been
improved to add Gettext language format tags for strings which contain the old
YCP %1
or new Ruby %s or %{foo} placeholders. (Thanks to HuHa!) This should ensure
that the
same tags are also present in the translated messages and avoid YaST crashes.
Because there is no suitable language tag for the Ruby %<foo>s placeholders they
should not be used in the YaST code. They can be easily replaced by the %{foo}
tags.
It turned out that this variant was used only in one YaST module (yast2-rmt) so
the
fix was easy.
Additionally I have enhanced the "rake check:pot" task to scan for the %<> tags
and
complain when found. This task is automatically used at Travis so this should
find
the possible issues very early.
For more details see these links:
- Script for adding the language tags:
https://github.com/yast/yast-devtools/pull/152
- Example how the new language tags were added:
https://github.com/yast/yast-translations/commit/5433f5b952fe883df8b74c0c35f4f5ccb439346d
- Fixed yast2-rmt: https://github.com/yast/yast-rmt/pull/56
- Enhanced "check:pot" task: https://github.com/yast/yast-rake/pull/79
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]