[wp-polyglots] Kubrick i18n / change at style.css

Nikolay Bachiyski nbachiyski at developer.bg
Wed Mar 12 07:47:43 GMT 2008


2008/3/11, Francesc Hervada-Sala <francesc at hervada.org>:
> Am Dienstag, 11. März 2008 13:23:59 schrieb Nikolay Bachiyski:
>
> > 2008/3/2, Francesc Hervada-Sala <francesc at hervada.org>:
>  > > Hello,
>  > >
>  > >  on my localization I use the internationalized version of the Kubrick
>
> > > theme. At the style.css [...]
>
> > >  I would like to delete the line 205 "text-transform: capitalize", since
>  > > in my language this abbreviation should not be capitalized.
>  > >
>  > >  How should I do it? With the i18n-Kubrick-distribution I just put the
>  > > po+mo files, no theme php or css files.
>  >
>  > You can add a filter for wp_head in <your-locale>.php in
>  > wp-content/languages
>  >
>  > Nikolay.
>
>
> Hello Nikolay,
>
>  I did not understand that. What is the <locale>.php? What can one do with a
>  wp_head filter? Is there a page on the codex about these?

If you add ca.php in wp-content/languages and the current locale is
ca, the file will be loaded, after all plugins have been loaded. Thus,
you can use it like a locale-specific plugin, which is auto-loaded.

Using a plugin, you can affect css by adding more css after it. The
wp_head hook lets you add html code in the end of the head tag on
non-admin WordPress pages. Here is the code, which out in ca.php will
do the trick:

ca.php:

function catalan_capitalization_fix() {
?>
    <style type="text/css">
        #wp-calendar th {
            text-transform: none !important;
        }
    </style>
<?php
}

add_action('wp_head', 'catalan_capitalization_fix');

Happy translating,
Nikolay.


More information about the wp-polyglots mailing list