Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arnaudrinquin/atom-language-gettext
- Owner: ArnaudRinquin
- License: other
- Created: 2015-01-19T16:51:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-21T15:05:00.000Z (almost 10 years ago)
- Last Synced: 2024-10-18T19:43:24.568Z (3 months ago)
- Language: CoffeeScript
- Size: 277 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
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.