phrase 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +64 -5
- data/lib/phrase/delegate.rb +5 -1
- data/lib/phrase/version.rb +1 -1
- metadata +22 -22
data/README.md
CHANGED
@@ -1,8 +1,67 @@
|
|
1
|
-
#
|
2
|
-
[![Build Status](https://secure.travis-ci.org/phrase/phrase.png)](http://travis-ci.org/phrase/phrase)
|
1
|
+
# PhraseApp #
|
3
2
|
|
4
|
-
|
3
|
+
[PhraseApp](http://phraseapp.com) makes it easy and fast to localize you mobile app or website.
|
5
4
|
|
6
|
-
|
5
|
+
PhraseApp let's you setup a professional translation process and boosts your translation quality with the powerful [In-Context Editor](http://demo.phraseapp.com).
|
7
6
|
|
8
|
-
https://phraseapp.com
|
7
|
+
You can also order professional translations from within PhraseApp, or simply work with your own team. PhrasApp supports various programming languages and frameworks. Such as [Ruby on Rails, Symfony, Zend, and many others](https://phraseapp.com/docs/general/supported-platforms).
|
8
|
+
|
9
|
+
This client let's you setup PhraseApp with your codebase and enables you to access your locale files through the PhraseApp [API](https://phraseapp.com/docs/api/overview).
|
10
|
+
|
11
|
+
[Get your free PhraseApp trial](https://phraseapp.com/signup) and start right away.
|
12
|
+
|
13
|
+
|
14
|
+
### References ###
|
15
|
+
* [PhraseApp In-Context Editor](http://demo.phraseapp.com)
|
16
|
+
* [PhraseApp API](https://phraseapp.com/docs/api/overview)
|
17
|
+
|
18
|
+
### Partner-Integrations ###
|
19
|
+
* [PhraseApp and Ruby Motion](https://github.com/phrase/motion-phrase)
|
20
|
+
* [Heroku Add-on](https://addons.heroku.com/phrase)
|
21
|
+
* [Cloudcontrol Add-on](https://phraseapp.com/docs/cloudcontrol/introduction)
|
22
|
+
|
23
|
+
### Testimonials ###
|
24
|
+
PhraseApp helps a lot of software companies. See what [our customers](http://phraseapp.com/testimonials) say.
|
25
|
+
|
26
|
+
### Supported Formats ###
|
27
|
+
You can manage your locale files with PhraseApp if they match one of the following formats:
|
28
|
+
|
29
|
+
* Ruby/Rails YAML
|
30
|
+
* Gettext
|
31
|
+
* Android Strings
|
32
|
+
* iOS Localizable Strings
|
33
|
+
* XLIFF
|
34
|
+
* Qt Phrase Book
|
35
|
+
* Qt Translation Source
|
36
|
+
* ChromeJSON i18n
|
37
|
+
* Simple JSON
|
38
|
+
* .NET ResX
|
39
|
+
* Windows Phone ResX
|
40
|
+
* INI
|
41
|
+
* Java Properties .properties
|
42
|
+
* Java Properties XML
|
43
|
+
* Objective-C/Cocoa Property List
|
44
|
+
* Symfony YAML
|
45
|
+
* TMX Translation Memory eXchange
|
46
|
+
* CSV
|
47
|
+
* PHP Array
|
48
|
+
|
49
|
+
|
50
|
+
### Supported platforms ###
|
51
|
+
|
52
|
+
PhraseApp can be integrated into a lot of frameworks and applications. The following list mentions all platforms that work with PhraseApp.
|
53
|
+
|
54
|
+
* Rails
|
55
|
+
* Sinatra
|
56
|
+
* Frameworks that use the i18n gem
|
57
|
+
* Frameworks that use the Fast-Gettext gem (e.g. by using gettext_i18n_rails)
|
58
|
+
* Symfony2
|
59
|
+
* Zend Framework
|
60
|
+
* If your application has translations managed via key-value data in YAML .yml- or .properties-files,
|
61
|
+
uses the i18n#t method or equivalent, has a development or staging system on which translations can be edited
|
62
|
+
We will show you how to build a custom client for our API to push and pull translations from our webservice. Even if you are using a different format for the locale files, e.g. property files, your system can probably be managed with phrase.
|
63
|
+
|
64
|
+
## Further Information ##
|
65
|
+
* [Read the PhraseApp documentation](https://phraseapp.com/docs)
|
66
|
+
* [Get your free PhraseApp trial](https://phraseapp.com/signup)
|
67
|
+
* [Get in touch with the engineers](https://phraseapp.com/contact)
|
data/lib/phrase/delegate.rb
CHANGED
@@ -21,7 +21,11 @@ module Phrase::Delegate
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def normalized_display_key
|
24
|
-
@display_key.
|
24
|
+
unless @display_key.nil?
|
25
|
+
@display_key.gsub("<", "[[[[[[html_open]]]]]]").gsub(">", "[[[[[[html_close]]]]]]")
|
26
|
+
else
|
27
|
+
@display_key
|
28
|
+
end
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
data/lib/phrase/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phrase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
16
|
-
requirement: &
|
16
|
+
requirement: &70334535021840 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70334535021840
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &70334535021380 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70334535021380
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70334535020960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70334535020960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &70334535020540 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70334535020540
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: i18n
|
60
|
-
requirement: &
|
60
|
+
requirement: &70334535020120 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70334535020120
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: webmock
|
71
|
-
requirement: &
|
71
|
+
requirement: &70334535019700 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70334535019700
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: vcr
|
82
|
-
requirement: &
|
82
|
+
requirement: &70334535019280 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70334535019280
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: timecop
|
93
|
-
requirement: &
|
93
|
+
requirement: &70334535018860 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70334535018860
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: genspec
|
104
|
-
requirement: &
|
104
|
+
requirement: &70334535018440 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70334535018440
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rails
|
115
|
-
requirement: &
|
115
|
+
requirement: &70334535018020 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ! '>='
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '0'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70334535018020
|
124
124
|
description: phrase allows you to edit translations in-place on the page itself. More
|
125
125
|
information at phraseapp.com
|
126
126
|
email:
|