Forums › Forums › Slimbox2 plugin › Localizing (translating) WP-Slimbox2
- This topic has 43 replies, 3 voices, and was last updated 15 years, 9 months ago by malcalevak.
-
AuthorPosts
-
January 21, 2009 at 4:20 am #4714imported_RyanMember
Well I guess I’ll need to pull finger and get mine done now too then ” title=”Smiley” />
January 21, 2009 at 5:07 pm #4715malcalevakModerator@nv1962: In preparation for the release with the Spanish translation do you think you’d be able to provide the image translations as well (next, prev, close)? Also translations for the counter text, and new key selections for close, previous and next (this would likely entail changing the text in the menu to reflect the new defaults as well).
I believe the code is complete, though the trick for the images was more painful than I’d expected – there might be an easier way, and I’m all ears if someone has one.
I’d attach the POT file, except I accidentally deleted here, so I’ll have to wait till I’m home to update it and provide it, though if you give me the translations and image files I can take care of it.
January 22, 2009 at 1:17 am #4716malcalevakModeratorOk, coding is all done, and it appears to work for me (I switched my test site to Spanish and gave it a go).
If translators want to look at the current files before the official release I’ll attach the POT here, as well as the spanish PO.
Just in case someone tries using these, I haven’t released the code with localization support, so you’ll get nothing.
I’m still waiting on translated close, next, and previous key selection, and images. I’ve moved the current images to an images/default/ sub-directory, and will likely place each localization in it’s own sub-directory like images/es_ES to make it easier for people to delete the ones they don’t want. Perhaps, before release, it would be better instead to place them in the languages folder, with the PO and MO for a respective language? Thoughts?
January 22, 2009 at 2:13 am #4717nv1962MemberHere are the images for Spanish; I’ve added the 2-letter language to the filename (as a suffix – but perhaps it’s easier for you to fish out the language if they’re instead added as a prefix, in which case they’d be named xx-image.gif and not image-xx.gif).
As to the language bits:
wp_slimbox_counterText:
Image {x} of {y} > Imagen {x} de {y}wp_slimbox_closeKeys:
Close > Cerrar
(same 3 key codes as English)wp_slimbox_previousKeys:
Prev. > Ant.
(i.e. key codes 65 for "a" and 37 for Leftarrow)wp_slimbox_nextKeys:
Next > Próx.
(i.e. key codes 80 for "p" and 39 for Rightarrow)January 22, 2009 at 2:16 am #4718nv1962MemberOops – I can’t read your .zip file; could you check whether it’s indeed a .zip and not something else (StuffIt, Gzip, etc.)?
January 22, 2009 at 2:59 am #4719imported_RyanMemberZip file loaded fine for me using WinRAR.
If you are using Windows to unzip it then that is probably the problem. Windows isn’t very good at unzipping files (XP or Vista). WinRAR worked fine for me though.
January 22, 2009 at 3:05 am #4720nv1962MemberNope, I’m using open source; 7-zip. Gives an unrecognized compression method error. Maybe with a Gzip instead?
January 22, 2009 at 3:17 am #4721nv1962MemberGot it now – upgraded 7-zip, that solved the problem. Working on the .po file right now; will post it as soon as it’s done.
January 22, 2009 at 3:56 am #4722nv1962MemberHere goes – I’ve taken the liberty of also changing the image filename references to match my suffixes; perhaps that’s useful also for version management, to avoid mix-ups of different language images.
NOTE: as the file is UTF-8, I’ve removed the HTML entity code, so it’s straight UTF-8 text now.
NOTE2: maybe I’m just complicating things, but perhaps you can just toss all images and language files together in the same "languages" directory; if you do a sanity check (e.g.: do both image and language files exist? if not, pick default… etc.) and just by prepending the language prefixes to the files (so, putting the 2-letter codes before – not after, as I did) you can see all images organized by language, and keep all .po and .mo files together too, by language…
January 22, 2009 at 4:20 am #4723imported_RyanMemberI’ve done some initial work on converting the Multi-level Navigation plugin … https://geek.hellyer.kiwi/forum/http://local … ic.php?t=6
If it isn’t setup correctly (entirely possible) then let me know and I’ll fix it ” title=”Smiley” />
This has been a good lesson in why NOT to add lots of text to your admin panel ” title=”Tongue” />
January 22, 2009 at 4:31 am #4724nv1962MemberActually, I believe the contrary – all too often, plugin authors assume that the users have the same approach to the plugin’s functionality as they do. As long as the information is presented in a reasonably hierarchical fashion (so as to facilitate skimming / skipping) I don’t think there’s something such as "too verbose" explanations. I think there’s a fairly directly inverse relationship between amount of UI documentation and support request levels… But yeah, I also understand that it’s time-intensive and a general pain in the @#$%&. Easy for me to say!
January 22, 2009 at 4:37 am #4725imported_RyanMemberThis is true.
Unfortunately some users always ignore instructions no matter how obvious they are.
Hopefully the amount of text required to be translated doesn’t put potential translators off helping out.
January 22, 2009 at 4:45 am #4726nv1962MemberFrankly, I rank MLNP among the "must-haves" so I’m quite sure that fellow localizers (translators) will drop by pretty soon. Nutty, quasi-random observation: the thing with customizing navigation and themes in general for relative "newbies" is that the idea of setting up a sandbox hardly ever rises. That’s why I like simple and ultra light-weight test server solutions, e.g. <a href="http://www.uniformserver.com/">Uniserver</a> (Uniform Server – it’s actually production-grade, just unzip & run from any directory!) which can be installed on any Windows box without affecting the operating system at all (i.e. it can even be installed on a USB stick, handy for trial runs and presentations) and it’s a great way to do a pre-run of the site, so you can roughly see the effect and functionality of navigation and CSS mods <i>before</i> messing with the real (live) server.
January 22, 2009 at 7:33 am #4727imported_RyanMemberI use XAMPP Lite myself. I run it off an SD card as they’re faster than a USB drive. I’ve never heard of Uniserver before.
January 23, 2009 at 2:34 am #4728nv1962MemberIt’s just 31.7MB unpacked (!) and has phpMyAdmin, MySQL, Perl, PHP, Apache… And a "plugin" architecture that allows adding some others things. XAMPP is no doubt a great solution, and well-established, but I like Uniserver’s tiny footprint and remarkable production grade strength / performance better. Matter of preference, not really an "objective" scale to apply. Pity it’s somewhat lesser known; the lead developer / maintainer (Olajide Olaolorun) deserves a statue!
Hope the .po file works for you. Let me know when the added string is available so I can add that one as well.
-
AuthorPosts
- You must be logged in to reply to this topic.