123 reputation
10
bio website
location
age
visits member for 2 years, 4 months
seen Sep 27 '12 at 15:52

My account seems to be hacked by some of the moderators. This profile also got changed by somebody a few times. I migrated to Quora, an awesome Q & A web site. I feel very comfortable there.


Aug
20
awarded  Commentator
Aug
20
comment Retrieve Path of admin.php
So is ABSPATH the most reliable way?
Aug
20
revised Retrieve Path of admin.php
added 85 characters in body
Aug
20
comment Retrieve Path of admin.php
For the css file it works thanks but for admin.php, actually I need to use include() so I need the system path, not the url. If I include with url, I get Warning: require() [function.require]: http:// wrapper is disabled in the server configuration by allow_url_include=0
Aug
19
asked Retrieve Path of admin.php
Aug
18
awarded  Scholar
Aug
18
accepted Localization Problem: Doesn't Display Translated Words
Aug
18
comment Localization Problem: Doesn't Display Translated Words
It turned out to be a problem of .mo file naming. CodeStyling Localization created a file named localizationsample-ja_JP.mo but it had to to be localizationsample-ja.mo, without _JP. I realized this by reading the source as you pointed out. It finally got working. Thank you so much.
Aug
18
comment Localization Problem: Doesn't Display Translated Words
I see indeed Codex was wrong. I'm testing with your suggestion now.
Aug
17
comment Localization Problem: Doesn't Display Translated Words
Ah, that's for load_textdomain() but the documentation of load_plugin_textdomain() also says "This function does not return a value." codex.wordpress.org/Function_Reference/load_plugin_textdomain
Aug
17
comment Localization Problem: Doesn't Display Translated Words
load_plugin_textdomain() always seems to return false. According to the documentation of the function, "On failure returns null and also on success returns nothing." Does this mean that if it loads a language file then returns true? "returns nothing" mean returns true, not false?
Aug
17
awarded  Editor
Aug
17
suggested rejected edit on Localization Problem: Doesn't Display Translated Words
Aug
17
revised Localization Problem: Doesn't Display Translated Words
added 209 characters in body
Aug
17
comment Localization Problem: Doesn't Display Translated Words
Okey, I created a .mo file as well but it doesn't translate. I also tried lowercase text domain. It did not help either. Also there was an error in my code: add_action('int', 'localizationsample_init'); had to be corrected to add_action('init', 'localizationsample_init'); Also load_plugin_textdomain() does not return a value so checking if it is loaded with your suggested method does not seem to work.
Aug
17
asked Localization Problem: Doesn't Display Translated Words