On 07.10.2013 10:52, Herbert Duerr wrote:
On 05.10.2013 23:36, Andrea Pescetti wrote:
On 28/09/2013 janI wrote:
I have btw changed xx_XX to xx-XX in branch l10n40, so we dont have a mix
of _ and -.

A good idea, thanks!

main/i18npool/source/localedata/data consistently uses underscores. On
the other hand, the old "extras/l10n/source" consistently uses dashes...
so I don't know which one is best here. If there's a way to adopt a
common convention, very good.

Following the RFC3066 [1] convention should be best. It uses the hyphen to separate the language tag from the subtag. Of course for naming variables in the source code the underscore counterpart is a good fallback.

I agree that we should use dashes instead of underscores where possible. As far as I know the reason that we use underscores lies in the makefiles. There are rules that "factor out" the language part from a target name. This is done by removing a suffix of the target name, ie split openoffice_en_US into openoffice and en_US. As you can not use dashes in target names, underscores are used instead.
Therefore we can not get rid of underscores in all places.

-Andre


[1] http://www.ietf.org/rfc/rfc3066.txt

Herbert


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to