Skip to content

Commit

Permalink
Add GetText Portable Object (PO) files (#814)
Browse files Browse the repository at this point in the history
Co-authored-by: XAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>
  • Loading branch information
utix and XAMPPRocky authored Aug 16, 2024
1 parent 0ddecd9 commit d64a9b3
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ Perl
Perl6
Pest
Php
Po
Poke
Polly
Pony
Expand Down
5 changes: 5 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,11 @@
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["php"]
},
"Po": {
"name": "PO File",
"line_comment": ["#"],
"extensions": ["po", "pot"]
},
"Poke": {
"multi_line_comments": [["/*", "*/"]],
"extensions": ["pk"]
Expand Down
14 changes: 14 additions & 0 deletions tests/data/pofile.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 14 lines 6 code 5 comments 3 blanks

#: lib/error.c:116
msgid "Unknown system error"
msgstr "Error desconegut del sistema"

#: disk-utils/addpart.c:15
#, c-format
msgid " %s <disk device> <partition number> <start> <length>\n"
msgstr " %s <périphérique disque> <numéro de partition> <début> <longueur>\n"

#: disk-utils/addpart.c:19
msgid "Tell the kernel about the existence of a specified partition.\n"
msgstr "Informer le noyau de l’existence d’une partition indiquée.\n"
17 changes: 17 additions & 0 deletions tests/data/pofile_pot.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 17 lines 8 code 5 comments 4 blanks

#: disk-utils/addpart.c:60 disk-utils/delpart.c:61 disk-utils/resizepart.c:101
msgid "invalid partition number argument"
msgstr ""

#: disk-utils/addpart.c:61
msgid "invalid start argument"
msgstr ""

#: disk-utils/addpart.c:62 disk-utils/resizepart.c:111
msgid "invalid length argument"
msgstr ""

#: disk-utils/addpart.c:63
msgid "failed to add partition"
msgstr ""

0 comments on commit d64a9b3

Please sign in to comment.