View Single Post
  #107  
Old Sep 25, 2009, 06:22 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
The same way as the regular theme files,

The first step would be to localize the bfa_theme_options.php file, see http://urbangiraffe.com/articles/loc...s-and-plugins/

The next step would be to translate it into Spanish, see http://urbangiraffe.com/articles/tra...s-and-plugins/

You would have to turn the texts in functions/bfa_theme_options.php from

array( "name" => "Homepage Meta Keywords",
"category" => "seo",
"id" => $shortname."_homepage_meta_keywords",
"std" => "",
"type" => "textarea-large",
"escape" => "yes",
"info" => "Type 5-30 words or phrases, separated by comma. Will be used as the Meta Keywords for (only)
the homepage. If left blank, no Meta Keywords will be added to the homepage.<br /><br />HTML: No<br />
Single and double quotes: Technically, Yes, but search engines might object to it. Probably better to avoid
quotes here."),



to

array( "name" => __("Homepage Meta Keywords","atahualpa")),
"category" => "seo",
"id" => $shortname."_homepage_meta_keywords",
"std" => "",
"type" => "textarea-large",
"escape" => "yes",
"info" =>
__("Type 5-30 words or phrases, separated by comma. Will be used as the Meta Keywords for (only)
the homepage. If left blank, no Meta Keywords will be added to the homepage.<br /><br />HTML: No<br />
Single and double quotes: Technically, Yes, but search engines might object to it. Probably better to avoid
quotes here.","atahualpa")),


You would not replace the other text including "options" => .... even though that contains some English terms. Or else more had to changed in other theme files as well.

The Atahualpa theme is about to settle (and not get many more changes) but there might be some changes to the admin area still in the next 1-2 versions.

The problem is that POEdit relies not just on the strings but also their occurence within the files including line numbers, and this may be a bit off at some places in a following version.

Ideally all terms would have to be separated completely into a separate Atahualpa file where terms only get added but never moved, I think. This is something I would have to do but never got around yet