xles / hyphenator

Automatically exported from code.google.com/p/hyphenator
GNU General Public License v3.0
0 stars 0 forks source link

Error in bcp47-code for Norwegian Bokmål #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:
In Hyphenator 3.3.0 the language code for Norwegian Bokmål is defined as 
'no-nb', but should be 'nb-no' (format is 'language-region'). 

Fix:
Adding the following code will fix the problem without breaking existing 
implementations:

Add to the supportedLang definition in Hyphenator.js:
'nb-no': 'no-nb.js',

Also line 113 in no-nb.js must be changed to:
Hyphenator.languages['no'] = Hyphenator.languages['no-nb'] = 
Hyphenator.languages['nb-no'] = {

To be more correct, no-nb.js should also be renamed nb-no.js

Original issue reported on code.google.com by bjorn%ga...@gtempaccount.com on 20 May 2011 at 7:45

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by mathiasn...@gmail.com on 20 May 2011 at 5:20

GoogleCodeExporter commented 9 years ago
fixed in r979

Original comment by mathiasn...@gmail.com on 8 Jun 2011 at 10:55