Skip to content

linguas redux

12 April 2006

Is the po/LINGUAS format set in stone? I ask because in SUSE we have to run gross sed scripts over all the configure.{ac,in} files to fix instances where the “no” locale hasn’t yet been switched to the “nb” locale. As the ordering and format of the ALL_LINGUAS field changes over time (usually to add linebreaks for easier readability), the sed script keeps breaking. If the po/LINGUAS file were one locale per line, this would simplify this greatly and we could just add this as a macro to run against all GNOME packages.

The script looks something like this:

sed "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure.in > configure.in.tmp && \
mv configure.in.tmp configure.in