Jump to content

Replace Words With Another


barryflood22

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.

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];
}
 
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.