Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a commentcomment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answers_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in WordpressTrigger language change in Wordpress, but if you now get me, I'm on a different track.

So, is that possible?

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in Wordpress, but if you now get me, I'm on a different track.

So, is that possible?

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in Wordpress, but if you now get me, I'm on a different track.

So, is that possible?

Post Closed as "Duplicate" by Mayeenul Islam, fuxia
Tweeted twitter.com/#!/StackWordPress/status/397300079713071104
minor motive change
Source Link
Mayeenul Islam
  • 12.9k
  • 21
  • 85
  • 169

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in Wordpress, but if you now get me, I'm on a different track.

So, is that possible?

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in Wordpress, but if you now get I'm on a different track.

So, is that possible?

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in Wordpress, but if you now get me, I'm on a different track.

So, is that possible?

Source Link
Mayeenul Islam
  • 12.9k
  • 21
  • 85
  • 169

How to trigger the core WPLANG to make automatically set a language when the theme is activated?

I'm developing a theme especially for Bānglā blog posting, and it'd be under GNU license. I questioned about a Calendar Widget translation with some problems today, and got a comment saying:

I'm just wondering, is this not covered in the Bangla translation?

And after the s_ha_dum's answer I thought I can make a translation-ready theme. Then I can translate all the necessary Texts for my theme. I followed:

  1. Internationalizing And Localizing Your WordPress Theme
    - by Konstantinos Kouratoras — WP.SmashingMagazine.com
  2. Translating Your Theme
    - by Robert Treacy — WP.TutsPlus.com

And now I made a complete translation-ready theme and it's working when I change the WPLANG to my language in wp-config.php. But except this step the whole thing is automatic. So if this step can be automatic, it'd be nice for me.

I want to place a filter that can hook the WPLANG and overwrite with bn_BD like:

define('WPLANG', 'bn_BD');

when the theme is activated.

So that I can simply say: "Install the theme, and it'll do everything for you. You don't need to have access into your cPanel to make change into the wp-config.php." I've read the WPSE thread Trigger language change in Wordpress, but if you now get I'm on a different track.

So, is that possible?