>>>>> "adrien" == adrien rebollo <[EMAIL PROTECTED]> writes:
adrien> Hello, Could somebody explain me what is that awful file adrien> ext_l10n.h ? adrien> A good part of the strings in the po files emanate from this adrien> one, it must be some sort of melting-pot... It is indeed. The code to create it is: $(top_srcdir)/src/ext_l10n.h: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc $(top_srcdir)/lib/ui/default.ui $(top_srcdir)/lib/languages sed < $(top_srcdir)/lib/ui/default.ui -n \ -e 's/.*[sS]ub[mM]enu[^"]*\("[^"]*"\).*/_(\1);/p' \ -e 's/.*[iI]tem[^"]*\("[^"]*"\).*/_(\1);/p' \ > $@ cat $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc | \ sed -n -e 's/^[sS]tyle[ ]*\([^ ]*\)$$/_("\1");/p' | \ sort | uniq >> $@ sed < $(top_srcdir)/lib/languages -e '/^#/d' -e 's/[^"]*\("[A-Za-z0-9][^"]*"\).*/_(\1);/' >> $@ cat $(top_srcdir)/src/frontends/qt2/ui/*.ui | grep '<string>..*</string>' | \ sed 's,&,\&,;s,^.*<string>,_(",;s,</string>,"),;' | uniq >> $@ While I can understand that it is difficult to grok, what it does is add to ext_l10n.h the strings for: - menus - layout files (Style names) - languages - qt2 ui files. This is probably this last part that annoys you the most. adrien> It does not facilitate the task of the translator, because we adrien> can't know to which part of the app the string belongs. It's adrien> yet more difficult today with the Qt2 frontend. I would like adrien> to tell for sure if a string is for Xforms or Qt2. Today it adrien> will avoid unnecessary work, and tomorrow we'll need to know adrien> in which frontend to test the changes. I asked already and will ask again: could a sed wizard out there change this script so that it adds filenames and line numbers for each of the entries of ext_l10n.h? JMarc