Closed (fixed)
Project:
String Overrides
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2008 at 13:26 UTC
Updated:
5 Sep 2010 at 20:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
robloachhttp://drupal.org/cvs?commit=112245
Comment #2
bcn commentedAfter applying this patch to v1.4, stings are no longer overridden.
The patch does fix the lang=xx issue, but seems to break the modules...
Comment #3
moshe weitzman commentedI can confirm that this has broen string replacement.
Comment #4
robloachI've moved it back to xx in HEAD. Would you mind testing 5.x-1.x-dev? I'd like to get a "fixed" release out as soon as possible.
I'm not experiencing this issue, strangely. With or without the patch.
Comment #5
bcn commentedI tested the latest dev version and it indeed fixes the problem.
Strange that you can't recreate this though. Drupal is on box with apache2, php5, mysql, with a pretty typical setup (ie no core patches). I guess the next thing to try would be a core install with no contrib modules, to see if there is a conflict happening somewhere.
Comment #6
robloachWe'll have to think of another solution to change "xx" reported in lang to "en".
Comment #7
geodaniel commentedI presume this isn't working because it is being overridden by the core locale 'en'. Would it work if a regional language code (e.g. en-US) was supplied instead of just 'en'?
Comment #8
arvinsingla commentedUsing "en-US" worked for me. Just using en fixed the xx problem, but caused the module to stop functioning even on the latest dev version. But en-US worked great.
Comment #9
plan9 commentedI have the same results. Changing "en" to "en-US" in the patch made it work. I would prefer to have "en" though as my site is in the UK - but keeping String Overrides happy is the priority here.
Comment #10
sunConfirming the bug.
Traceback for validating that "en-US" is a valid code that can be used for xml:lang and lang document attributes:
XHTML 1.0: The lang and xml:lang Attributes
http://www.w3.org/TR/xhtml1/#C_7
XHTML 1.0: "lang" attributes are based on HTML 4
http://www.w3.org/TR/xhtml1/#ref-html4
Language information and text direction: Specifying the language of content: the lang attribute
http://www.w3.org/TR/1999/REC-html401-19991224/struct/dirlang.html#h-8.1
Basic HTML data types: Language codes
http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-langcode
...and finally:
Basic HTML data types: Language codes
http://www.w3.org/TR/1999/REC-html401-19991224/struct/dirlang.html#langc...
Comment #11
robloachAwesome, got two patches for you guys to try out............. enus.patch just uses en-US, languagecode.patch allows you to choose what language to put in there.
Comment #12
jaydub commentedBoth patches applied cleanly and worked as advertised.
The patch to stringoverrides.admin.inc in languagecode.patch is missing an '@' in the t() call in the description though. Re-rolled to fix that.
Comment #13
smk-ka commentedAnd another all-in-one reroll.
Comment #14
robloachThanks!
http://drupal.org/cvs?commit=410766