Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arnaudrinquin/atom-language-gettext

Gettext files support for Atom
https://github.com/arnaudrinquin/atom-language-gettext

Last synced: 21 days ago
JSON representation

Gettext files support for Atom

Awesome Lists containing this project

README

        

# Gettext files support in Atom

Adds syntax highlighting to `msgid`, `msgstr`, etc in Atom.

Adds a few snippets:

* `hdr` -> `"$1: $2\n"`
* `id` -> `msgid "$1"`
* `idp` -> `msgid_plural "$1"`
* `str` -> `msgstr "$1"`
* `strp` -> `msgstr[$1] "$2"`
* `ctx` -> `msgctxt "$1"`
* `msg` -> `msgid + msgstr`
* `msgp` -> `msgid + msgid_plural + msgstr + msgtrp_plural`
* `msgc` -> `msgctxt + msgid + msgstr`
* `msgcp` -> `msgctxt + msgid + msgid_plural + msgstr + msgtrp_plural`

The last `tab` navigation position is conveniently placed on a new line so you can chain quickly.

Originally [converted](http://atom.io/docs/latest/converting-a-text-mate-bundle)
from the [Gettext TextMate bundle](https://github.com/textmate/gettext.tmbundle).

Contributions are greatly appreciated. Please fork this repository and open a
pull request to add snippets, make grammar tweaks, etc.