Commit graph

481 commits

Author SHA1 Message Date
Sergey Pisarchik
0dd57c04fc Tizen unit test fix 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
2bfc6ef5fb Add IDS_key.upcase 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
b0e9d362c8 Add write_all_files for Tizen.
Add languages Hash
2014-05-16 15:56:29 +03:00
Sergey Pisarchik
70d04143fe Output "text id" instead of "string name" 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
9ca167a447 Output <string_table> instead of <resources>. 2014-05-16 15:56:29 +03:00
Sergey Pisarchik
5953d020b7 Add Tizen test (test-output-12.txt). 2014-05-16 15:56:28 +03:00
Sergey Pisarchik
1fbe56ddd6 Added Tizen formatter as a copy of the Android formatter. 2014-05-16 11:38:46 +03:00
Sebastian Celis
0b52d8a346 Fix leading and trailing spaces in android xml files. 2014-03-26 14:06:56 -05:00
Sebastian Celis
a0a8496664 Fix unit tests. 2014-03-17 08:39:50 -05:00
Sebastian Celis
14036f293f Clean up jquery output. 2014-03-17 08:39:37 -05:00
Simon Friis Vindum
7e311c7b11 Remove section titles and comments from JSON output
The comment syntax is not proper JSON.
2014-03-17 14:22:57 +01:00
Simon Friis Vindum
4e308175b6 Remove illegal comments
Comments aren't supported in JSON
2014-03-17 09:39:03 +01:00
Sebastian Celis
22482c3587 Update version to 0.5.0. 2014-02-28 13:40:00 -06:00
Sebastian Celis
05854553a1 Make the resources regular expression more forgiving. 2014-02-24 16:16:58 -06:00
Sebastian Celis
da1b4ece9b Add Shai Shamir to the list of contributors. 2014-02-21 09:48:32 -06:00
Sebastian Celis
d91a727e00 Merge remote-tracking branch 'pichirichi/patch-2' 2014-02-20 16:26:05 -06:00
Shai Shamir
4e7c0a9590 add Django formatter 2014-02-20 15:41:45 +02:00
pichirichi
da1e6030de add Django formatter support to the documentation 2014-02-20 14:23:21 +02:00
pichirichi
9c546be6c9 Adding Django formatter
This will enable the creation of Django formated translation files as described here: https://docs.djangoproject.com/en/dev/topics/i18n/translation/
2014-02-20 14:18:56 +02:00
Sebastian Celis
a9eea2378e Add Blake Watters to the list of contributors. 2013-10-01 10:40:03 -05:00
Sebastian Celis
2b6e9fc1b8 Clean up write_all_files.
We now ignore the current directory and its parent as neither of these
are meant to be checked in write_all_files. This could cause extra files
to be written unexpectedly.
2013-10-01 10:37:06 -05:00
Blake Watters
367b275b3e Fix incorrect handling of nested paths when generating string files 2013-10-01 11:05:29 -04:00
Sebastian Celis
bb6f2b656f Merge remote-tracking branch 'GateGuru/bugfix/do-not-strip-positionals' 2013-10-01 09:06:56 -05:00
Blake Watters
fdbff215cd Drop code that strips positionals from iOS strings 2013-09-27 17:50:49 -04:00
Blake Watters
fbdb9b1fe7 Add encoding comment to ensure file is parsed as utf-8 2013-09-27 17:34:27 -04:00
Blake Watters
1fd932da7d Modernize Gemfile source 2013-09-27 17:19:05 -04:00
Sebastian Celis
50e5d23f0a When writing a set of files, only write to valid directories.
This fixes issue #40
2013-09-16 08:11:57 -05:00
Sebastian Celis
b630d61ed1 Add Joseph Earl to the list of contributors. 2013-07-11 16:46:48 -05:00
Joseph Earl
c23e1c2cae Fixed gettext test 2013-07-05 22:03:19 +01:00
Joseph Earl
5d2a42d7ce Updated git ignore 2013-07-05 21:38:50 +01:00
Joseph Earl
bbc8e42602 Modified gettext formatter to print out sections as .po comments 2013-07-03 15:42:07 +01:00
Joseph Earl
a0830fea47 Added gitignore 2013-07-03 15:41:21 +01:00
Kevin Everets
e13c2c2c7d Fix parsing of .po files for multiline msgstr
It's valid for a msgstr to be broken over multiple lines, all of which
are enclosed with ".  To handle this, no longer iterate over the lines within
an item but rather apply the matching to the entire item.
2013-06-16 21:45:32 -05:00
Kevin Everets
51161194ed Add test for multiline strings in .po files 2013-06-16 21:45:24 -05:00
Sebastian Celis
63fd78f0bc Write all languages to the twine strings file.
We used to only write translations to the strings file that did not
match the developer language. It was done this way to try and reduce
space in the strings file and to get en-UK to pick up en changes.

This turned out to be the wrong decision. It's better to explicitly
ensure that all strings are translated in all languages, and to not
automatically pick up en string changes in other languages.

This fixes issue #29.
2013-06-16 21:40:13 -05:00
Sebastian Celis
9a3f4fdc44 Properly credit twine_ui. 2013-05-28 17:46:26 -05:00
Sebastian Celis
f12dedcb57 Add reference to twine_ui. 2013-05-28 17:44:44 -05:00
Sebastian Celis
77445077ef Add a note about the Twine TextMate 2 bundle. 2013-05-20 08:36:18 -05:00
Sebastian Celis
ca1422eda0 Update verstion to 0.4.0. 2013-05-17 08:03:17 -05:00
Sebastian Celis
8e8c3edcff Add contributors section. 2013-05-17 08:00:17 -05:00
Kevin Everets
2a90a4ce5c Update test-output-7.txt to be compliant with the actual comment specification
The proper comment structure for gettext is not ".#" but "#." as seend in:

https://www.gnu.org/software/gettext/manual/gettext.html#PO-Files

The code was updated, but the test case was not.  This commit addresses that
oversight.
2013-03-21 16:40:24 -05:00
Kevin Everets
a84a84d8c5 Fix regex for reading gettext to be more lenient and remove extra logging
We don't distinguish between the types of comments and should allow space between
the field type and the value.

Also, the extra logging was accidentally left in and should be removed
2013-03-21 16:40:18 -05:00
Kevin Everets
d1dc043b3f Fix bug in generation of .po comments
It was written ".#" but should have been "#." for extracted comments
2013-03-21 16:40:13 -05:00
Sebastian Celis
d87e00307a Add unit test for parameterized strings. 2013-03-06 15:18:00 -06:00
Sebastian Celis
8e453c1995 Fix possible crash when consuming Android string files.
Twine would crash if --tags were supplied on the command line. This
parameter is undocumented for consume-string-file. It shouldn't do
anything (at least not yet).

Fixes #23
2013-02-07 16:21:48 -06:00
Mohammad Hejazi
f191da57db Added flash formatter for 'resources.properties' file
Conflicts:
	lib/twine/formatters.rb
2013-01-27 15:00:35 -06:00
Kevin Everets
41234c9f95 Add escaping of strings that start with "@ " for android 2013-01-17 11:45:57 -05:00
Kevin Everets
bd0953dce4 Update documentation to reflect addition of gettext formatted files 2013-01-15 14:58:02 -05:00
Kevin Everets
8c56b59474 Add tests for gettext conversion 2013-01-15 14:46:43 -05:00
Kevin Everets
0d87dc38ce Fix "require 'erb'" to work on case sensitive file systems
Tests were failing when running "rake" before this was done
2013-01-15 14:26:33 -05:00