Welcome Guest, Not a member yet? Register   Sign In
Best Practice for Multi-Lingual Support
#1

[eluser]CodeIgniterNewbie[/eluser]
Which is better:

Code:
$lang['my_content'] = 'Content with <a href="http://www.w3.org/Amaya/User/HTML-elements/inline.html">inline markup</a>';

OR

Code:
// the %s would have to be built outside of the language file; "inline markup" would still come from the language file, though
$lang['my_content'] = 'Content without %s';


A purist might argue that the language files should ONLY contain language items; no markup whatsoever. This adds a layer of difficulty when having to deal with inline markup (declaration of another language variable, having to construct the markup outside of the language file, etc.).

Perhaps there isn't a problem with mixing content and markup in the language files -- if it will simplify complexity of code.

Are there any suggested best practices for this issue?


Messages In This Thread
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 02:00 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 07:02 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 07:19 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 08:06 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 08:36 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 08:40 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 09:07 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 09:26 AM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 01:56 PM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 08:15 PM
Best Practice for Multi-Lingual Support - by El Forum - 09-04-2008, 09:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB