Welcome Guest, Not a member yet? Register   Sign In
How do you i18n?
#14

[eluser]adamp1[/eluser]
At the moment language files are really pissing me off. For several main reasons which I know solutions to but don't know which one would be best. So at the moment I'm sitting on the fence doing neither.

First off I want my application to be easily upgradable so I want all language strings to be editable if needed, this means I need to use some kind of language system. Now my system comprises of many modules each with their own language file which has specific strings that module uses.

Now say I have the line $lang['member_delete'] = "Delete";, now yes it is used in the member module but its also used in other places, but I don't want to load all language files every time. So basically what I have to do is create more $lang['modulename_delete'] = "Delete"; for each module which uses the word 'Delete'. So as you can see this starts to mean editing the word 'delete' in multiple locations.

So I thought maybe use gettext, and then even though 'Delete' is used in multiple locations they would all use the same meaning. But then comes the problem of having one very large language file which gettext uses, this means it looses its individual relations with each module.

So what I'm asking is how do people cope with using basic strings like 'Edit', 'Add', 'Delete' etc. Do you use the CI language files or gettext?


Messages In This Thread
How do you i18n? - by El Forum - 02-25-2008, 05:07 PM
How do you i18n? - by El Forum - 02-25-2008, 05:19 PM
How do you i18n? - by El Forum - 02-25-2008, 05:31 PM
How do you i18n? - by El Forum - 02-25-2008, 05:44 PM
How do you i18n? - by El Forum - 02-25-2008, 06:04 PM
How do you i18n? - by El Forum - 02-25-2008, 07:16 PM
How do you i18n? - by El Forum - 02-26-2008, 02:01 AM
How do you i18n? - by El Forum - 02-26-2008, 04:32 AM
How do you i18n? - by El Forum - 02-26-2008, 06:30 AM
How do you i18n? - by El Forum - 03-04-2008, 11:40 AM
How do you i18n? - by El Forum - 03-15-2008, 12:18 PM
How do you i18n? - by El Forum - 03-15-2008, 02:36 PM
How do you i18n? - by El Forum - 03-16-2008, 03:49 AM
How do you i18n? - by El Forum - 03-19-2008, 07:42 AM
How do you i18n? - by El Forum - 03-19-2008, 10:41 AM
How do you i18n? - by El Forum - 03-19-2008, 05:23 PM
How do you i18n? - by El Forum - 03-26-2008, 08:49 AM
How do you i18n? - by El Forum - 05-31-2008, 08:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB