Jump to content

Recommended Posts

Internationalization, huh?

 

Is there somewhere already a place in your system that "defines" COM_COMMUNITY_LANG_NAME_IRELAND to be Ireland? Maybe in the database? Configuration files?

It might also define that for a specific locale/language, like it's Ireland for most English speakers but Éire for the Irish and Ирландия for Russians.

Edited by requinix

I need to stop answering my own questions, I created a language file :-)

 

<?PHP
//Have seperate language files for each language I add, this would be english file
function lang($phrase){
    static $lang = array(
        'COM_COMMUNITY_LANG_NAME_UNITEDKINGDOM' => 'The UK',
        'COM_COMMUNITY_LANG_NAME_IRELAND' => 'Ireland'
    );
    return $lang[$phrase];
}
 
?>
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.