google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

translating issues #506

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem? (Be *specific*)
1.login into WP with a language other than English
2.go to cctm admin page
3.the left menu by some reason is not being translated

What is the expected output?
to be translated

What do you see instead?
the text in English
See the attached image for details. This issue is marked in red.

I noticed also that in the file views/list_post_type.php there are a few 
strings that are not translatable in lines 4-5 and 11-12 . This can be seen in 
the attached image circled in blue. Notice that in this image I made the 
changes required in views/list_post_type.php so that's the reason why the text 
is in Portuguese already =D . This modified file is also attached.

Does the problem continue if you disable all other plugins? (plugin
conflicts cause a LOT of problems, so please isolate the problem)
yes it does

"Report a Bug" text:

*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.7.6-pl
WordPress Version: 3.5.1
PHP Version: 5.3.17
MySQL Version: 5.5.29-log
Server OS: Linux
Language: pt_BR
------------------------ 
ACTIVE PLUGINS: 
 * Akismet v.2.5.8 [http://akismet.com/?return=true]
 * Auto Post Thumbnail v.3.3.2 [http://www.sanisoft.com/blog/2010/04/19/wordpress-plugin-automatic-post-thumbnail/]
 * Better WP Security v.3.5.3 [http://bit51.com/software/better-wp-security/]
 * Front-end Editor v.2.3 [http://scribu.net/wordpress/front-end-editor]
 * Google Analyticator v.6.4.4.3 [http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt]
 * Login Logo v.0.7 [http://txfx.net/wordpress-plugins/login-logo/]
 * Maintenance Mode v.5.4 [http://sw-guide.de/wordpress/plugins/maintenance-mode/]
 * MimeTypes Link Icons v.3.1.2 [http://blog.eagerterrier.co.uk/2010/10/holy-cow-ive-gone-and-made-a-mime-type-wordpress-plugin/]
 * Simple Fields v.1.3.3 [http://simple-fields.com]
 * Theme-Check v.20121211.1 [http://pross.org.uk/plugins]
 * TinyMCE Advanced v.3.5.8 [http://www.laptoptips.ca/projects/tinymce-advanced/]
 * WordPress Importer v.0.6.1 [http://wordpress.org/extend/plugins/wordpress-importer/]
 * WP Mail From II v.1.0.1 [http://wordpress.org/extend/plugins/wp-mailfrom-ii/]
------------------------ 
CURRENT THEME: Tema personalizado Plug v.1.0 http://aluizioll.com.br/websites/

Original issue reported on code.google.com by aluizi...@gmail.com on 27 Jun 2013 at 1:40

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by ever...@fireproofsocks.com on 27 Jun 2013 at 1:50

GoogleCodeExporter commented 9 years ago
Ok, I've added the translation -- I think you need to include the .mo file too.

Committed revision 734667.

Original comment by ever...@fireproofsocks.com on 1 Jul 2013 at 2:47

GoogleCodeExporter commented 9 years ago
This po file is not the final version yet. According to the picture I sent it 
is possible to notice that there are still 5% text to be translated. I'll 
finish this within the week and attach the po file in this same topic.

Original comment by aluizi...@gmail.com on 1 Jul 2013 at 2:58

GoogleCodeExporter commented 9 years ago
Ah, ok.  Let me mark this as "in progress" for now then.

Original comment by ever...@fireproofsocks.com on 1 Jul 2013 at 3:10

GoogleCodeExporter commented 9 years ago
Did you check what was causing the left menu not to work? I looked inside the 
source and it seemed to be ok, but the result was the one shown in the picture, 
and as you can see, the po files point to two sources where it locates the text.

Original comment by aluizi...@gmail.com on 1 Jul 2013 at 10:47

GoogleCodeExporter commented 9 years ago
I'm not sure I see what you're talking about... that string is used in 2 
places.  Seems to be working fine.

Original comment by ever...@fireproofsocks.com on 2 Jul 2013 at 12:25

GoogleCodeExporter commented 9 years ago
Ok, I really hope you can check this issue when you can.

I'm attaching another file that had untranslatable text (the file is already 
fixed).
file: views/settings.php line 165

Sorry if I'm bothering you with all of this posts but I'm trying to make it as 
simple as I can by giving you the files with the needed mods.

Original comment by aluizi...@gmail.com on 2 Jul 2013 at 1:24

Attachments:

GoogleCodeExporter commented 9 years ago
Please keep sending files: it's helpful if you identify the file and the line 
number.  Otherwise I'm not sure I know what you're referring to.

Original comment by ever...@fireproofsocks.com on 4 Jul 2013 at 4:28

GoogleCodeExporter commented 9 years ago
I was trying some few things here and I noticed that if I remove the 
CCTM_TXTDOMAIN from __('Settings'), for example, in the file 
"config/menu/admin_menu.php" line 92-93 the text in the menu gets translated. 
Probably this is using some other context, but I suppose it might lead us to 
think what is going on.
I also tried to check the function add_menu_page() for some bad behavior but 
nothing changed at all. See the attached image.

Original comment by aluizi...@gmail.com on 5 Jul 2013 at 1:30

Attachments:

GoogleCodeExporter commented 9 years ago
I'm not sure what you're demonstrating in the image.

Ah, I got it -- the admin_init action was not firing before the admin_menu 
event.  I moved the load_plugin_textdomain() call to the loader.php file...

Committed revision 747682.

Original comment by ever...@fireproofsocks.com on 29 Jul 2013 at 7:27