Closed GoogleCodeExporter closed 9 years ago
we can remove the globals but the locale.php is important and need to stay.
Tagging localization
Original comment by eugene.m...@gmail.com
on 14 Jun 2012 at 8:15
why is it important? it works without it. check this discussion:
http://make.wordpress.org/themes/2012/05/08/proposed-wordpress-3-4-guidelines-re
visions/#comment-19427
apparently it has been removed from automattic's _s theme.
Original comment by helgathe...@gmail.com
on 14 Jun 2012 at 9:46
I think it is important because it was added in support of the I18n community.
Yes, the mo files provide translation without that code but the purpose of the
code is not to provide translation.
It's to provide functionality that is specific to a locale. The link below
points out a valid use case for desiring the ability to add a local.php to the
parent.
http://themeshaper.com/forums/topic/thematic-in-greek
There are likely other alphabets and use cases that may be similar that we
bloody English speakers don't have the capacity to realize.
I'm in favor of leaving it in for now and giving it further thought. The
make.themes discussion only mentions that this is not a theme requirement.
Original comment by eugene.m...@gmail.com
on 15 Jun 2012 at 1:32
it sure is convenient being an english-speaker. you can go everywhere in the
world and have an (un)reasonable expectation that everyone will understand you
:)
ok, so it isn't necessarily related to the translation mo files, but isn't that
code looking in thematic's language folder? there aren't any php files in
there to ever load. if someone needs to load a .php to do some localization
mods shouldn't that file be in the child theme?
Original comment by helgathe...@gmail.com
on 15 Jun 2012 at 1:29
yeah I'm leaning toward thinking that whatever "plugin" functionality the files
might have provided would be better served by a child theme.
There is a load_childtheme_text_domain function but that looks to be best
included by a child theme not the framework.
need to run some tests and attempt a locale.php to see if it will run from
within the child theme dir
Original comment by eugene.m...@gmail.com
on 15 Jun 2012 at 1:57
makes sense to me. we could maybe change the code to use locate_template() and
then it would automatically search the child theme first.
$locale = get_locale();
locate_template(array('library/languages/$locale.php','languages/$locale.php'),
true);
or completely leave it in the hands of the child themers.
Original comment by helgathe...@gmail.com
on 15 Jun 2012 at 2:27
Original comment by eugene.m...@gmail.com
on 29 Oct 2012 at 12:34
Original issue reported on code.google.com by
helgathe...@gmail.com
on 14 Jun 2012 at 1:34Attachments: