Elric's random thoughts in idle times

"Why stop now, when I'm just starting to hate it?" – Marvin the robot

Posts Tagged ‘l10n

Using vim-addons and PO plugin

leave a comment »

I really like vim-addons. It provides a very convenient and quick way to install, enable, disable, and more, addons for Vim. You can do it per-user if you run without privileges (a link is created under ~/.vim, or system-wide. To work, it needs some data fields in a yaml file for every plugin. The package vim-scripts in Debian provides such file, so I just used that one.

By default, vim-addons searches for plugins under /usr/share/vim/addons, whereas the plugins provided by vim-scripts are located under /usr/share/vim-scripts. This means you can add any plugin under /addons with the knowledge that it won’t interfere with other vim-scripts.

The reason I did this is because I don’t like the PO plugin file provided with vim-scripts. I rather like its fork, which also includes documentation. This is the entry I created for it in /usr/share/vim/registry/vim-scripts.yaml. You can also create a new yaml file and place it under the same directory. I didn’t have to specify the field basedir, as I placed the files under vim/addons.

addon: po-fork
description: "Enhanced PO addon"
disabledby: "let loaded_alternateFile = 1"
files:
- ftplugin/po.vim
- doc/po.txt
---

This done, use vim-addons list to see all addons with a yaml file, and vim-addons install addon to activate it. Use vim-addons help to get an idea of what you can do with this program.

Enjoy!

Advertisements

Written by elric80

December 1, 2010 at 12:30 pm

Posted in debian, l10n, linux, vim

Tagged with , , , ,

Debian: virtaal 0.6.1 and translate-toolkit 1.7

with 3 comments

Edit: You might want to try the newest beta releases. The packages have been tested on Debian Squeeze and Ubuntu 10.04 and 10.10, and work just fine. Take a look into the amazing enhancements this release will offer by downloading the deb packages from Translate.org.za!

Definitely, virtaal is my po editor of choice. It’s clean interface and ease of use are the best virtues of this application. translate-toolkit is a dependency for virtaal and Pootle as well as a CLI tool to manipulate po files. If you haven’t used it yet, you’ll be surprised by the enhances it may bring to your work.
Ok, virtaal doesn’t do half of what Lokalize does, but I only use a quarter of what Lokalize does. Gtranslator is a fine tool, but development seems to be stopped. It is a stable and full piece of software, but I’m not a fan of the interface either. Poedit isn’t that great, in my opinion. However, Virtaal’s integration with translate-toolkit, offering nice enhancements, promising a bright future, and its interface just beat all aforementioned.

Obligatory image:

As you can see there are NO extra buttons, and the layout looks like a side-by-side sheet presentation. Beautiful.
It also allows access to machine translation services such as Google, Moses and Opentran. Other features include highlighted diffs between the translation memory suggestions, a don’t-touch-your-mouse approach, and much more.

One thing that saddens me is how late updates can be for these two packages in Debian (not incredibly late, just to much for me to wait :), and in this particular case, there was a bug rendering the preferences window pretty useless that was fixed in this release (thanks to Walter). As I couldn’t wait for long :) I just built the packages from the latest sources. It’s working great for me, but use at your own risk.
Actually, I’m doing this so often (build newer packages or rebuild other with different options) that I should consider starting a ppa. Anway, these are the links for both packages.

translate-toolkit_1.7_all.deb

virtaal_0.6.1_all.deb

Happy FOSS translating!

Written by elric80

June 4, 2010 at 11:10 am

po4a. Gestión del formato y las traducciones de documentación

leave a comment »

po4a es un programa que me lleva fascinando un tiempo. Tanto que he acabado actualizando su extenso y completo manual, lo cual me ha llevado a aprender mejor su uso. Así mismo, es mi herramienta predilecta en el proyecto vim-doc-es, del cual formo parte (sin desmerecer el excelente translate toolkit).
Ayer mismo salió la versión 0.37 de po4a, que trae importantes mejoras para aquellos desarrolladores que desean localizar los documentos de ayuda (generalmente páginas de manual) de su programa. Read the rest of this entry »

Written by elric80

November 21, 2009 at 3:05 pm

Posted in debian, l10n, linux

Tagged with , , , , ,

Proyecto vim-doc-es. Manual de usuario de Vim en español.

leave a comment »

El proyecto vim-doc-es nació con la intención de ofrecer una correcta y completa traducción de Vim al español, incluyendo la documentación (páginas de manual y archivos de ayuda) así como la interfaz gráfica y los mensajes del programa. Read the rest of this entry »

Written by elric80

November 1, 2009 at 7:33 pm

Posted in l10n, vim

Tagged with , ,