[wp-hackers] Simplest way to create a custom language pack for the purpose of markup only?
Nikola Nikolov
nikolov.tmw at gmail.com
Tue Feb 25 08:37:13 UTC 2014
Actually, install and activate Codestyling
Localization<http://wordpress.org/plugins/codestyling-localization/>on
your WordPress site. Then go to Tools > Localization and click on the
"Add new language" button that is across from "WordPress".
Select your language(en_IN - I assume it's existing, but I haven't
checked). Once it's created click on the "Rescan" button across from the
language - it opens a pop-up and you click "scan now".
Once that's done, click on the "Edit" button across from the language.
This will take you to the screen where you can translate all the strings.
Make a simple change - for instance click "edit" on the first string you
see and copy/paste the text in the "Original" textarea to the "Translation"
textarea. On top of the screen, click on the "generate mo-file", which will
generate the correct mo-file for you, but it will pretty much be blank.
That should be it - the file should be saved in the proper location and now
you should be able to use en_IN in your site.
Hmmm - I just checked the plugin and it doesn't seem to support en_IN. You
can probably still use this approach and then just rename the .mo file(you
might have to look at the file and see if there is locale information in
it).
On Tue, Feb 25, 2014 at 8:26 AM, Otto <otto at ottodestruct.com> wrote:
> On Mon, Feb 24, 2014 at 9:46 PM, Aahan Krish <krish+wphackers at aahan.me>
> wrote:
> > WPLANG option in the individual site settings in network admin won't save
> > until there are necessary language files. Hence the question, what's the
> > simplest way to create language files?
>
> The simplest way would be to contribute to the existing translations:
> http://translate.wordpress.org
>
> Alternatively, get the POT files and use your own po-editing tool of
> choice to make a translation yourself:
> http://i18n.svn.wordpress.org/pot/tags/3.8/
>
>
> > Can I simply download the UK English (en_GB) version of WordPress and
> > simply replace all instances of en_GB in the language file names (files
> > residing in wp-content/languages) with en_IN? Is that sufficient?
>
> Yes, it's simply reading the filenames to determine what languages are
> installed.
>
>
> > If yes (to the question right above), where can I get the language files
> > for en_US? I'd prefer US English to UK English in the dashboard; I am
> used
> > to it.
>
> There is no set of en_US files, as that's the fallback position. It's
> what is translated from, not to.
>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list