i18n_viz 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +26 -28
- data/app/assets/javascripts/i18n_viz/gui.js.coffee +12 -15
- data/app/assets/javascripts/i18n_viz/processing.js.coffee +15 -14
- data/app/assets/stylesheets/i18n_viz.css +14 -14
- data/lib/i18n_viz/version.rb +1 -1
- data/test/dummy/log/test.log +365 -0
- data/test/dummy/tmp/cache/assets/CA3/C70/sprockets%2Fb0861b6c1fa62f655934129e40072c3a +0 -0
- data/test/dummy/tmp/cache/assets/CAA/2F0/sprockets%2F11421d959d2829cde7f44200d63b436b +0 -0
- data/test/dummy/tmp/cache/assets/CBA/CB0/sprockets%2F1794af7fbc3984f60b5335cf60840573 +0 -0
- data/test/dummy/tmp/cache/assets/CDD/640/sprockets%2F7dbb69499115ae2b043de298a03264b7 +0 -0
- data/test/dummy/tmp/cache/assets/CDF/CE0/sprockets%2F5b28ba105943c3d7648e1c3a64497d6a +0 -0
- data/test/dummy/tmp/cache/assets/D04/6D0/sprockets%2F2792527ad49637274a05a22bebccca27 +0 -0
- data/test/dummy/tmp/cache/assets/D14/750/sprockets%2Fa42ef296b90d25d74e048b312c7ff377 +0 -0
- data/test/dummy/tmp/cache/assets/D40/6C0/sprockets%2Fb3594c1e07aaf967887206dc5a1e23dd +0 -0
- data/test/dummy/tmp/cache/assets/D4D/730/sprockets%2F13fdf81363d2974af512288b8be95bff +0 -0
- data/test/dummy/tmp/cache/assets/D4E/BB0/sprockets%2F2e3b59f7005582b147ef8769bbfe44cf +0 -0
- data/test/dummy/tmp/cache/assets/D59/990/sprockets%2Fb749b65c4be001644b0e11af5ae57d1a +0 -0
- data/test/dummy/tmp/cache/assets/D65/C70/sprockets%2Fdaffaa499747888455a88d764cdd467f +0 -0
- data/test/dummy/tmp/cache/assets/D69/F70/sprockets%2Fc65d0f4dc24dd9e86c5c234b9d10b154 +0 -0
- data/test/dummy/tmp/cache/assets/D6C/DC0/sprockets%2F32d69b64b7ccdcb24f7235b5cd5247e2 +0 -0
- data/test/dummy/tmp/cache/assets/D71/FD0/sprockets%2F814ae60ca18d2f4d9403c672d9fe2de6 +0 -0
- data/test/dummy/tmp/cache/assets/D72/290/sprockets%2F7cd08947b83fdbb73ead2613c7f0930e +0 -0
- data/test/dummy/tmp/cache/assets/D7C/FF0/sprockets%2F813778cca328c7d9a71e6ad9bd6b5b93 +0 -0
- data/test/dummy/tmp/cache/assets/DA9/9C0/sprockets%2Fde7818edd5229ecc4f5808d25aea085d +0 -0
- data/test/dummy/tmp/cache/assets/DB7/FA0/sprockets%2F4db6264216dbe021be2b5de03d5defb2 +0 -0
- data/test/dummy/tmp/cache/assets/DE0/290/sprockets%2Fd8af96e9ce8323d61dfb2a0f2d8798ae +0 -0
- data/test/dummy/tmp/cache/assets/DFC/D80/sprockets%2F5ed6211e15876facc9cf6ea6bb0f25cc +0 -0
- data/test/dummy/tmp/cache/assets/EBC/970/sprockets%2Fb33decf60fdc18cbde88f1f58b0cfbcb +0 -0
- metadata +4 -5
- data/app/assets/stylesheets/i18n_viz.css.sass +0 -24
data/README.md
CHANGED
@@ -20,54 +20,52 @@ More features (like inline editing) are possible in the future.
|
|
20
20
|
|
21
21
|
## Requirements
|
22
22
|
|
23
|
-
i18n_viz.js currently depends on jQuery being already loaded in your app (Tested with jQuery 1.6.1, but should also work with other versions)
|
24
23
|
|
25
|
-
|
24
|
+
* i18n gem
|
25
|
+
* jQuery (tested with 1.6.x and 1.7.x)
|
26
|
+
* Rails 3.1+
|
27
|
+
* CoffeeScript
|
26
28
|
|
29
|
+
However, with a little bit of manual work, you should be able to get the whole thing to run without Rails and CoffeeScript. Just let me know if you need help.
|
27
30
|
|
28
31
|
## Installation
|
29
32
|
|
30
33
|
##### 1. Install the gem
|
31
34
|
|
32
|
-
Add the
|
35
|
+
Add the fullowing line to your `Gemfile` and run `bundle install`:
|
33
36
|
|
34
|
-
gem 'i18n_viz'
|
35
37
|
|
36
|
-
|
38
|
+
##### 2. Include the assets
|
37
39
|
|
38
|
-
|
40
|
+
You need to include the JavaScript(CoffeeScript) and CSS assets in your app in the environment where you want to use the gem. There are several ways to do it. Here I describe two ways of doing it with the Rails asset pipeline:
|
39
41
|
|
42
|
+
Either you can simply require the assets in your manifest files:
|
40
43
|
|
41
|
-
|
44
|
+
`app/assets/javascripts/application.js`:
|
42
45
|
|
43
|
-
|
46
|
+
// = require i18n_viz
|
47
|
+
|
48
|
+
|
49
|
+
`app/assets/stylesheets/application.css`:
|
44
50
|
|
45
|
-
|
51
|
+
/* = require i18n_viz.css */
|
52
|
+
|
53
|
+
Or, if you don't want use the gem in production mode (which makes lots of sense), you can turn your manifest files into ERB templates by adding the `.erb` file extension and only include the assets in non-production environments:
|
46
54
|
|
47
|
-
// = require i18n_viz
|
48
55
|
|
49
|
-
|
56
|
+
`app/assets/javascripts/application.js.erb`:
|
50
57
|
|
51
|
-
|
58
|
+
<% require_asset "i18n_viz" unless Rails.env.production? %>
|
52
59
|
|
53
|
-
|
60
|
+
`app/assets/stylesheets/application.css.erb`:
|
54
61
|
|
55
|
-
|
56
|
-
|
57
|
-
For the stylesheet is is very similar, either you you add a simple directive in your manifest (`app/assets/stylesheets/application.js`):
|
62
|
+
<% require_asset "i18n_viz" unless Rails.env.production? %>
|
58
63
|
|
59
|
-
/* = require i18n_viz.css */
|
60
64
|
|
61
|
-
|
65
|
+
!**Gotcha**: You need to leave a blank line between your asset pipeline directives (`// require`, `// require_tree`, ...) and the erb line above, otherwise it will NOT work!
|
62
66
|
|
63
|
-
<% require_asset "i18n_viz" if I18nViz.enabled? %>
|
64
|
-
|
65
|
-
<!--Or if you are using SASS, something like:
|
66
67
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
If you are not using Rails 3.1+ and the asset pipeline you will need to compile the Coffeescript to Javascript and copy and include the assets in the right places. If there should be demand for it I might provide some more comfortable way of doing this.
|
68
|
+
If you are not using the asset pipeline, you will need to manually copy over the assets.
|
71
69
|
|
72
70
|
|
73
71
|
#### 3. Create initializer (optional)
|
@@ -78,12 +76,12 @@ E.g. `config/initializers/i18n_viz.rb`:
|
|
78
76
|
|
79
77
|
# encoding: utf-8
|
80
78
|
unless defined?(I18nViz).nil?
|
81
|
-
# determine under which condition the gem should be active
|
79
|
+
# determine under which condition the gem should be active (e.g. only in non-production environments)
|
82
80
|
I18nViz.enabled = !Rails.env.production?
|
83
81
|
|
84
82
|
# Link to display in the I18nViz tooltip
|
85
|
-
# e.g. pointing to that particular string in your apps translation tool
|
86
|
-
# the i18n key will be appended to
|
83
|
+
# e.g. pointing to that particular string in your apps translation tool (webtranslateit.com, localeapp.com, ...)
|
84
|
+
# the i18n key will be appended to this URL
|
87
85
|
I18nViz.external_tool_url = "https://webtranslateit.com/en/projects/1234567/locales/en..de/strings?utf8=✓&s="
|
88
86
|
end
|
89
87
|
|
@@ -5,16 +5,18 @@ $(document).ready () ->
|
|
5
5
|
.click () -> $("#i18n_viz_tooltip").hide()
|
6
6
|
|
7
7
|
# enrich elements with i18n attributes, classes, tooltip events
|
8
|
-
$.fn.initGUI = (
|
9
|
-
$(this)
|
8
|
+
$.fn.initGUI = () ->
|
9
|
+
$i18n_element = $(this)
|
10
|
+
keys = $i18n_element.data("i18n-keys")
|
11
|
+
$i18n_element
|
10
12
|
# tooltip events
|
11
13
|
.mouseenter () ->
|
12
14
|
$tooltip = $("#i18n_viz_tooltip")
|
13
15
|
|
14
|
-
top = $
|
15
|
-
left = $
|
16
|
+
top = $i18n_element.offset().top - $tooltip.outerHeight()
|
17
|
+
left = $i18n_element.offset().left
|
16
18
|
if (top < 0)
|
17
|
-
top = $
|
19
|
+
top = $i18n_element.offset().top + $i18n_element.height() + 10
|
18
20
|
|
19
21
|
$tooltip.html('');
|
20
22
|
keys.forEach (value) ->
|
@@ -26,17 +28,14 @@ $(document).ready () ->
|
|
26
28
|
$tooltip
|
27
29
|
.css({top: top, left: left})
|
28
30
|
.show()
|
29
|
-
$
|
31
|
+
$i18n_element
|
30
32
|
|
31
33
|
# process elements with i18n strings in their text
|
32
34
|
$(":i18n-textnode").each () ->
|
33
|
-
$
|
34
|
-
|
35
|
-
|
36
|
-
$i18n_textnode
|
37
|
-
.enrichWithI18nData(i18n_keys)
|
38
|
-
.initGUI(i18n_keys)
|
35
|
+
$(this)
|
36
|
+
.enrichWithI18nData()
|
39
37
|
.clearI18nText()
|
38
|
+
.initGUI()
|
40
39
|
|
41
40
|
# process elements with i18n strings in the value or placeholder attributes
|
42
41
|
$("input:i18n-value-placeholder").each () ->
|
@@ -44,9 +43,7 @@ $(document).ready () ->
|
|
44
43
|
input_value = $i18n_input_element.val()
|
45
44
|
placeholder_value = $i18n_input_element.attr('placeholder')
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
$i18n_input_element.enrichWithI18nData(i18n_keys)
|
46
|
+
$i18n_input_element.enrichWithI18nData()
|
50
47
|
|
51
48
|
# clear i18n data from value and placeholder attributes
|
52
49
|
cleared_input_value = input_value.replace(window.I18nViz.global_regex, "")
|
@@ -1,11 +1,21 @@
|
|
1
|
+
# extract i18n keys from a textnode (e.g. "translated text--en.translation.key--")
|
2
|
+
window.I18nViz.extractI18nKeysFromText = (text) ->
|
3
|
+
keys = text.match(window.I18nViz.global_regex)
|
4
|
+
if keys
|
5
|
+
keys.forEach (value, index) -> keys[index] = value.replace(/--/g, "")
|
6
|
+
keys
|
7
|
+
else
|
8
|
+
null
|
9
|
+
|
1
10
|
# enrich elements with i18n attributes, classes
|
2
11
|
$.fn.enrichWithI18nData = () ->
|
3
|
-
|
12
|
+
$i18n_element = $(this)
|
13
|
+
i18n_keys = window.I18nViz.extractI18nKeysFromText $i18n_element.text()
|
4
14
|
if i18n_keys != null
|
5
|
-
$
|
15
|
+
$i18n_element
|
6
16
|
.addClass("i18n-viz")
|
7
17
|
.data("i18n-keys", i18n_keys)
|
8
|
-
$
|
18
|
+
$i18n_element
|
9
19
|
|
10
20
|
# clear i18n data from element text
|
11
21
|
$.fn.clearI18nText = () ->
|
@@ -13,20 +23,11 @@ $.fn.clearI18nText = () ->
|
|
13
23
|
$(this).replaceWith $(this).text().replace(I18nViz.global_regex, "")
|
14
24
|
$(this)
|
15
25
|
|
16
|
-
# extract i18n keys from a textnode (e.g. "translated text--en.translation.key--")
|
17
|
-
I18nViz.extractI18nKeysFromText = (text) ->
|
18
|
-
keys = text.match(I18nViz.global_regex)
|
19
|
-
if keys
|
20
|
-
keys.forEach (value, index) -> keys[index] = value.replace(/--/g, "")
|
21
|
-
keys
|
22
|
-
else
|
23
|
-
null
|
24
|
-
|
25
26
|
# custom :i18n selectors
|
26
27
|
$.extend $.expr[':'], {
|
27
28
|
'i18n-textnode': (el) ->
|
28
|
-
I18nViz.regex.test $(el).textNodes().text()
|
29
|
+
window.I18nViz.regex.test $(el).textNodes().text()
|
29
30
|
,
|
30
31
|
'i18n-value-placeholder': (el) ->
|
31
|
-
(I18nViz.regex.test($(el).val()) || I18nViz.regex.test($(el).attr('placeholder')))
|
32
|
+
(window.I18nViz.regex.test($(el).val()) || I18nViz.regex.test($(el).attr('placeholder')))
|
32
33
|
}
|
@@ -1,40 +1,40 @@
|
|
1
|
-
/* line 4, ../../../
|
1
|
+
/* line 4, ../../../sass/i18n_viz.css.sass */
|
2
2
|
#i18n_viz_tooltip {
|
3
3
|
display: none;
|
4
4
|
position: absolute;
|
5
5
|
top: 100px;
|
6
6
|
left: 200px;
|
7
7
|
border: 2px solid #a9a9a9;
|
8
|
-
-moz-border-radius: 5px;
|
9
8
|
-webkit-border-radius: 5px;
|
10
|
-
-
|
9
|
+
-moz-border-radius: 5px;
|
11
10
|
-ms-border-radius: 5px;
|
12
|
-
-
|
11
|
+
-o-border-radius: 5px;
|
13
12
|
border-radius: 5px;
|
14
13
|
background-color: #f5f5f5;
|
15
|
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #
|
16
|
-
background-image: -webkit-linear-gradient(#
|
17
|
-
background-image: -moz-linear-gradient(#
|
18
|
-
background-image: -o-linear-gradient(#
|
19
|
-
background-image: -ms-linear-gradient(#
|
20
|
-
background-image: linear-gradient(#
|
14
|
+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #f5f5f5));
|
15
|
+
background-image: -webkit-linear-gradient(#ffffff, #f5f5f5);
|
16
|
+
background-image: -moz-linear-gradient(#ffffff, #f5f5f5);
|
17
|
+
background-image: -o-linear-gradient(#ffffff, #f5f5f5);
|
18
|
+
background-image: -ms-linear-gradient(#ffffff, #f5f5f5);
|
19
|
+
background-image: linear-gradient(#ffffff, #f5f5f5);
|
21
20
|
padding: 10px;
|
21
|
+
z-index: 999;
|
22
22
|
}
|
23
|
-
/* line
|
23
|
+
/* line 15, ../../../sass/i18n_viz.css.sass */
|
24
24
|
#i18n_viz_tooltip a, #i18n_viz_tooltip span {
|
25
25
|
margin-right: 10px;
|
26
26
|
}
|
27
|
-
/* line
|
27
|
+
/* line 17, ../../../sass/i18n_viz.css.sass */
|
28
28
|
#i18n_viz_tooltip a:last-child, #i18n_viz_tooltip span:last-child {
|
29
29
|
margin-right: 0;
|
30
30
|
}
|
31
31
|
|
32
|
-
/* line
|
32
|
+
/* line 20, ../../../sass/i18n_viz.css.sass */
|
33
33
|
.i18n-viz {
|
34
34
|
cursor: help;
|
35
35
|
background: lightyellow !important;
|
36
36
|
}
|
37
|
-
/* line
|
37
|
+
/* line 23, ../../../sass/i18n_viz.css.sass */
|
38
38
|
.i18n-viz:hover {
|
39
39
|
color: black;
|
40
40
|
background: yellow !important;
|
data/lib/i18n_viz/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -5462,3 +5462,368 @@ Served asset /i18n_viz.js - 304 Not Modified (0ms)
|
|
5462
5462
|
|
5463
5463
|
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-09 15:41:25 +0200
|
5464
5464
|
Served asset /application.js - 304 Not Modified (2ms)
|
5465
|
+
|
5466
|
+
|
5467
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 08:15:24 +0200
|
5468
|
+
Processing by TestController#test as HTML
|
5469
|
+
Parameters: {"i18n_viz"=>"1"}
|
5470
|
+
Rendered test/test.html.erb within layouts/application (5.4ms)
|
5471
|
+
Compiled i18n_viz.css (0ms) (pid 21168)
|
5472
|
+
Compiled application.css (16ms) (pid 21168)
|
5473
|
+
Compiled i18n_viz/processing.js (65ms) (pid 21168)
|
5474
|
+
Compiled i18n_viz/gui.js (5ms) (pid 21168)
|
5475
|
+
Compiled i18n_viz.js (3ms) (pid 21168)
|
5476
|
+
Compiled application.js (2ms) (pid 21168)
|
5477
|
+
Completed 200 OK in 147ms (Views: 147.2ms)
|
5478
|
+
|
5479
|
+
|
5480
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 08:15:24 +0200
|
5481
|
+
Processing by TestController#test as HTML
|
5482
|
+
Parameters: {"i18n_viz"=>"1"}
|
5483
|
+
Completed 200 OK in 4ms (Views: 3.8ms)
|
5484
|
+
|
5485
|
+
|
5486
|
+
Started GET "/test" for 127.0.0.1 at 2012-05-14 08:15:24 +0200
|
5487
|
+
Processing by TestController#test as HTML
|
5488
|
+
Completed 200 OK in 4ms (Views: 3.7ms)
|
5489
|
+
|
5490
|
+
|
5491
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5492
|
+
Processing by TestController#test as HTML
|
5493
|
+
Parameters: {"i18n_viz"=>"1"}
|
5494
|
+
Completed 200 OK in 7ms (Views: 7.0ms)
|
5495
|
+
|
5496
|
+
|
5497
|
+
Started GET "/assets/i18n_viz.css?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5498
|
+
Served asset /i18n_viz.css - 200 OK (3ms)
|
5499
|
+
|
5500
|
+
|
5501
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5502
|
+
Served asset /jquery.js - 200 OK (9ms)
|
5503
|
+
|
5504
|
+
|
5505
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5506
|
+
Served asset /application.css - 200 OK (3ms)
|
5507
|
+
|
5508
|
+
|
5509
|
+
Started GET "/assets/i18n_viz/settings.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5510
|
+
Served asset /i18n_viz/settings.js - 200 OK (2ms)
|
5511
|
+
|
5512
|
+
|
5513
|
+
Started GET "/assets/i18n_viz/processing.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5514
|
+
Served asset /i18n_viz/processing.js - 200 OK (2ms)
|
5515
|
+
|
5516
|
+
|
5517
|
+
Started GET "/assets/i18n_viz/utils.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5518
|
+
Served asset /i18n_viz/utils.js - 200 OK (3ms)
|
5519
|
+
|
5520
|
+
|
5521
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5522
|
+
Served asset /jquery_ujs.js - 200 OK (1ms)
|
5523
|
+
|
5524
|
+
|
5525
|
+
Started GET "/assets/i18n_viz/gui.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5526
|
+
Served asset /i18n_viz/gui.js - 200 OK (2ms)
|
5527
|
+
|
5528
|
+
|
5529
|
+
Started GET "/assets/i18n_viz.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5530
|
+
Served asset /i18n_viz.js - 200 OK (7ms)
|
5531
|
+
|
5532
|
+
|
5533
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:27 +0200
|
5534
|
+
Served asset /application.js - 200 OK (8ms)
|
5535
|
+
|
5536
|
+
|
5537
|
+
Started GET "/test" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5538
|
+
Processing by TestController#test as HTML
|
5539
|
+
Completed 200 OK in 5ms (Views: 4.6ms)
|
5540
|
+
|
5541
|
+
|
5542
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5543
|
+
Served asset /application.css - 304 Not Modified (6ms)
|
5544
|
+
|
5545
|
+
|
5546
|
+
Started GET "/assets/i18n_viz/settings.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5547
|
+
Served asset /i18n_viz/settings.js - 304 Not Modified (1ms)
|
5548
|
+
|
5549
|
+
|
5550
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5551
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
5552
|
+
|
5553
|
+
|
5554
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5555
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
5556
|
+
|
5557
|
+
|
5558
|
+
Started GET "/assets/i18n_viz/utils.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5559
|
+
Served asset /i18n_viz/utils.js - 304 Not Modified (0ms)
|
5560
|
+
|
5561
|
+
|
5562
|
+
Started GET "/assets/i18n_viz.css?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5563
|
+
Served asset /i18n_viz.css - 304 Not Modified (0ms)
|
5564
|
+
|
5565
|
+
|
5566
|
+
Started GET "/assets/i18n_viz/processing.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5567
|
+
Served asset /i18n_viz/processing.js - 304 Not Modified (0ms)
|
5568
|
+
|
5569
|
+
|
5570
|
+
Started GET "/assets/i18n_viz.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5571
|
+
Served asset /i18n_viz.js - 304 Not Modified (0ms)
|
5572
|
+
|
5573
|
+
|
5574
|
+
Started GET "/assets/i18n_viz/gui.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5575
|
+
Served asset /i18n_viz/gui.js - 304 Not Modified (0ms)
|
5576
|
+
|
5577
|
+
|
5578
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-14 08:15:29 +0200
|
5579
|
+
Served asset /application.js - 304 Not Modified (2ms)
|
5580
|
+
|
5581
|
+
|
5582
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 08:28:28 +0200
|
5583
|
+
Processing by TestController#test as HTML
|
5584
|
+
Parameters: {"i18n_viz"=>"1"}
|
5585
|
+
Rendered test/test.html.erb within layouts/application (4.1ms)
|
5586
|
+
Compiled i18n_viz.css (0ms) (pid 21681)
|
5587
|
+
Compiled application.css (1ms) (pid 21681)
|
5588
|
+
Completed 200 OK in 58ms (Views: 58.0ms)
|
5589
|
+
|
5590
|
+
|
5591
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 08:28:28 +0200
|
5592
|
+
Processing by TestController#test as HTML
|
5593
|
+
Parameters: {"i18n_viz"=>"1"}
|
5594
|
+
Completed 200 OK in 4ms (Views: 3.8ms)
|
5595
|
+
|
5596
|
+
|
5597
|
+
Started GET "/test" for 127.0.0.1 at 2012-05-14 08:28:28 +0200
|
5598
|
+
Processing by TestController#test as HTML
|
5599
|
+
Completed 200 OK in 4ms (Views: 3.9ms)
|
5600
|
+
|
5601
|
+
|
5602
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 08:28:30 +0200
|
5603
|
+
Processing by TestController#test as HTML
|
5604
|
+
Parameters: {"i18n_viz"=>"1"}
|
5605
|
+
Completed 200 OK in 7ms (Views: 7.3ms)
|
5606
|
+
|
5607
|
+
|
5608
|
+
Started GET "/assets/i18n_viz.css?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5609
|
+
Served asset /i18n_viz.css - 200 OK (6ms)
|
5610
|
+
|
5611
|
+
|
5612
|
+
Started GET "/assets/i18n_viz/utils.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5613
|
+
Served asset /i18n_viz/utils.js - 200 OK (6ms)
|
5614
|
+
|
5615
|
+
|
5616
|
+
Started GET "/assets/i18n_viz/settings.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5617
|
+
Served asset /i18n_viz/settings.js - 200 OK (7ms)
|
5618
|
+
|
5619
|
+
|
5620
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5621
|
+
Served asset /jquery.js - 200 OK (12ms)
|
5622
|
+
|
5623
|
+
|
5624
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5625
|
+
Served asset /application.css - 200 OK (9ms)
|
5626
|
+
|
5627
|
+
|
5628
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5629
|
+
Served asset /jquery_ujs.js - 200 OK (8ms)
|
5630
|
+
|
5631
|
+
|
5632
|
+
Started GET "/assets/i18n_viz/processing.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5633
|
+
Served asset /i18n_viz/processing.js - 200 OK (2ms)
|
5634
|
+
|
5635
|
+
|
5636
|
+
Started GET "/assets/i18n_viz/gui.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5637
|
+
Served asset /i18n_viz/gui.js - 200 OK (3ms)
|
5638
|
+
|
5639
|
+
|
5640
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5641
|
+
Served asset /application.js - 200 OK (12ms)
|
5642
|
+
|
5643
|
+
|
5644
|
+
Started GET "/assets/i18n_viz.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:31 +0200
|
5645
|
+
Served asset /i18n_viz.js - 200 OK (7ms)
|
5646
|
+
|
5647
|
+
|
5648
|
+
Started GET "/test" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5649
|
+
Processing by TestController#test as HTML
|
5650
|
+
Completed 200 OK in 5ms (Views: 4.6ms)
|
5651
|
+
|
5652
|
+
|
5653
|
+
Started GET "/assets/i18n_viz.css?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5654
|
+
Served asset /i18n_viz.css - 304 Not Modified (9ms)
|
5655
|
+
|
5656
|
+
|
5657
|
+
Started GET "/assets/i18n_viz/utils.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5658
|
+
Served asset /i18n_viz/utils.js - 304 Not Modified (0ms)
|
5659
|
+
|
5660
|
+
|
5661
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5662
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
5663
|
+
|
5664
|
+
|
5665
|
+
Started GET "/assets/i18n_viz/settings.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5666
|
+
Served asset /i18n_viz/settings.js - 304 Not Modified (0ms)
|
5667
|
+
|
5668
|
+
|
5669
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5670
|
+
Served asset /application.css - 304 Not Modified (2ms)
|
5671
|
+
|
5672
|
+
|
5673
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5674
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
5675
|
+
|
5676
|
+
|
5677
|
+
Started GET "/assets/i18n_viz/gui.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5678
|
+
Served asset /i18n_viz/gui.js - 304 Not Modified (0ms)
|
5679
|
+
|
5680
|
+
|
5681
|
+
Started GET "/assets/i18n_viz/processing.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5682
|
+
Served asset /i18n_viz/processing.js - 304 Not Modified (0ms)
|
5683
|
+
|
5684
|
+
|
5685
|
+
Started GET "/assets/i18n_viz.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5686
|
+
Served asset /i18n_viz.js - 304 Not Modified (0ms)
|
5687
|
+
|
5688
|
+
|
5689
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-14 08:28:33 +0200
|
5690
|
+
Served asset /application.js - 304 Not Modified (1ms)
|
5691
|
+
Compiled jquery.js (1ms) (pid 22068)
|
5692
|
+
Compiled jquery_ujs.js (0ms) (pid 22068)
|
5693
|
+
Compiled i18n_viz/settings.js (58ms) (pid 22068)
|
5694
|
+
Compiled i18n_viz/utils.js (2ms) (pid 22068)
|
5695
|
+
Compiled i18n_viz/processing.js (4ms) (pid 22068)
|
5696
|
+
Compiled i18n_viz/gui.js (5ms) (pid 22068)
|
5697
|
+
Compiled i18n_viz.js (86ms) (pid 22068)
|
5698
|
+
Compiled application.js (109ms) (pid 22068)
|
5699
|
+
Compiled i18n_viz.css (0ms) (pid 22068)
|
5700
|
+
Compiled application.css (4ms) (pid 22068)
|
5701
|
+
Compiled jquery.js (1ms) (pid 23419)
|
5702
|
+
Compiled jquery_ujs.js (0ms) (pid 23419)
|
5703
|
+
Compiled i18n_viz/settings.js (60ms) (pid 23419)
|
5704
|
+
Compiled i18n_viz/utils.js (2ms) (pid 23419)
|
5705
|
+
Compiled i18n_viz/processing.js (4ms) (pid 23419)
|
5706
|
+
Compiled i18n_viz/gui.js (4ms) (pid 23419)
|
5707
|
+
Compiled i18n_viz.js (87ms) (pid 23419)
|
5708
|
+
Compiled application.js (111ms) (pid 23419)
|
5709
|
+
Compiled i18n_viz.css (0ms) (pid 23419)
|
5710
|
+
Compiled application.css (4ms) (pid 23419)
|
5711
|
+
|
5712
|
+
|
5713
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 09:37:14 +0200
|
5714
|
+
Processing by TestController#test as HTML
|
5715
|
+
Parameters: {"i18n_viz"=>"1"}
|
5716
|
+
Rendered test/test.html.erb within layouts/application (3.9ms)
|
5717
|
+
Compiled i18n_viz.css (0ms) (pid 23524)
|
5718
|
+
Compiled application.css (20ms) (pid 23524)
|
5719
|
+
Compiled jquery.js (1ms) (pid 23524)
|
5720
|
+
Compiled jquery_ujs.js (0ms) (pid 23524)
|
5721
|
+
Compiled i18n_viz/settings.js (58ms) (pid 23524)
|
5722
|
+
Compiled i18n_viz/utils.js (2ms) (pid 23524)
|
5723
|
+
Compiled i18n_viz/processing.js (4ms) (pid 23524)
|
5724
|
+
Compiled i18n_viz/gui.js (5ms) (pid 23524)
|
5725
|
+
Compiled i18n_viz.js (109ms) (pid 23524)
|
5726
|
+
Compiled application.js (143ms) (pid 23524)
|
5727
|
+
Completed 200 OK in 223ms (Views: 222.6ms)
|
5728
|
+
|
5729
|
+
|
5730
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 09:37:14 +0200
|
5731
|
+
Processing by TestController#test as HTML
|
5732
|
+
Parameters: {"i18n_viz"=>"1"}
|
5733
|
+
Completed 200 OK in 3ms (Views: 3.0ms)
|
5734
|
+
|
5735
|
+
|
5736
|
+
Started GET "/test" for 127.0.0.1 at 2012-05-14 09:37:14 +0200
|
5737
|
+
Processing by TestController#test as HTML
|
5738
|
+
Completed 200 OK in 3ms (Views: 2.9ms)
|
5739
|
+
|
5740
|
+
|
5741
|
+
Started GET "/test?i18n_viz=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5742
|
+
Processing by TestController#test as HTML
|
5743
|
+
Parameters: {"i18n_viz"=>"1"}
|
5744
|
+
Completed 200 OK in 6ms (Views: 6.1ms)
|
5745
|
+
|
5746
|
+
|
5747
|
+
Started GET "/assets/i18n_viz.css?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5748
|
+
Served asset /i18n_viz.css - 200 OK (34ms)
|
5749
|
+
|
5750
|
+
|
5751
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5752
|
+
Served asset /jquery_ujs.js - 200 OK (10ms)
|
5753
|
+
|
5754
|
+
|
5755
|
+
Started GET "/assets/i18n_viz/utils.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5756
|
+
Served asset /i18n_viz/utils.js - 200 OK (5ms)
|
5757
|
+
|
5758
|
+
|
5759
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5760
|
+
Served asset /application.css - 200 OK (5ms)
|
5761
|
+
|
5762
|
+
|
5763
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5764
|
+
Served asset /jquery.js - 200 OK (4ms)
|
5765
|
+
|
5766
|
+
|
5767
|
+
Started GET "/assets/i18n_viz/settings.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5768
|
+
Served asset /i18n_viz/settings.js - 200 OK (2ms)
|
5769
|
+
|
5770
|
+
|
5771
|
+
Started GET "/assets/i18n_viz/processing.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5772
|
+
Served asset /i18n_viz/processing.js - 200 OK (1ms)
|
5773
|
+
|
5774
|
+
|
5775
|
+
Started GET "/assets/i18n_viz/gui.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5776
|
+
Served asset /i18n_viz/gui.js - 200 OK (1ms)
|
5777
|
+
|
5778
|
+
|
5779
|
+
Started GET "/assets/i18n_viz.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5780
|
+
Served asset /i18n_viz.js - 200 OK (4ms)
|
5781
|
+
|
5782
|
+
|
5783
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:17 +0200
|
5784
|
+
Served asset /application.js - 200 OK (7ms)
|
5785
|
+
|
5786
|
+
|
5787
|
+
Started GET "/test" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5788
|
+
Processing by TestController#test as HTML
|
5789
|
+
Completed 200 OK in 5ms (Views: 4.7ms)
|
5790
|
+
|
5791
|
+
|
5792
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5793
|
+
Served asset /application.css - 304 Not Modified (6ms)
|
5794
|
+
|
5795
|
+
|
5796
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5797
|
+
Served asset /jquery_ujs.js - 304 Not Modified (1ms)
|
5798
|
+
|
5799
|
+
|
5800
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5801
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
5802
|
+
|
5803
|
+
|
5804
|
+
Started GET "/assets/i18n_viz/settings.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5805
|
+
Served asset /i18n_viz/settings.js - 304 Not Modified (0ms)
|
5806
|
+
|
5807
|
+
|
5808
|
+
Started GET "/assets/i18n_viz/utils.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5809
|
+
Served asset /i18n_viz/utils.js - 304 Not Modified (0ms)
|
5810
|
+
|
5811
|
+
|
5812
|
+
Started GET "/assets/i18n_viz.css?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5813
|
+
Served asset /i18n_viz.css - 304 Not Modified (0ms)
|
5814
|
+
|
5815
|
+
|
5816
|
+
Started GET "/assets/i18n_viz/processing.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5817
|
+
Served asset /i18n_viz/processing.js - 304 Not Modified (0ms)
|
5818
|
+
|
5819
|
+
|
5820
|
+
Started GET "/assets/i18n_viz/gui.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5821
|
+
Served asset /i18n_viz/gui.js - 304 Not Modified (0ms)
|
5822
|
+
|
5823
|
+
|
5824
|
+
Started GET "/assets/i18n_viz.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5825
|
+
Served asset /i18n_viz.js - 304 Not Modified (0ms)
|
5826
|
+
|
5827
|
+
|
5828
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-05-14 09:37:19 +0200
|
5829
|
+
Served asset /application.js - 304 Not Modified (1ms)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_viz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-14 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|
@@ -19,7 +19,6 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- app/assets/stylesheets/i18n_viz.css
|
22
|
-
- app/assets/stylesheets/i18n_viz.css.sass
|
23
22
|
- app/assets/javascripts/i18n_viz.js
|
24
23
|
- app/assets/javascripts/i18n_viz/settings.js.coffee.erb
|
25
24
|
- app/assets/javascripts/i18n_viz/gui.js.coffee
|
@@ -162,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
161
|
version: '0'
|
163
162
|
segments:
|
164
163
|
- 0
|
165
|
-
hash:
|
164
|
+
hash: -383735518171921276
|
166
165
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
166
|
none: false
|
168
167
|
requirements:
|
@@ -171,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
170
|
version: '0'
|
172
171
|
segments:
|
173
172
|
- 0
|
174
|
-
hash:
|
173
|
+
hash: -383735518171921276
|
175
174
|
requirements: []
|
176
175
|
rubyforge_project:
|
177
176
|
rubygems_version: 1.8.5
|
@@ -1,24 +0,0 @@
|
|
1
|
-
@import "compass/css3/border-radius"
|
2
|
-
@import "compass/css3/gradient"
|
3
|
-
|
4
|
-
#i18n_viz_tooltip
|
5
|
-
display: none
|
6
|
-
position: absolute
|
7
|
-
top: 100px
|
8
|
-
left: 200px
|
9
|
-
border: 2px solid #A9A9A9
|
10
|
-
+border-radius(5px)
|
11
|
-
background-color: #F5F5F5
|
12
|
-
+linear-gradient(#FFFFFF, #F5F5F5)
|
13
|
-
padding: 10px
|
14
|
-
a, span
|
15
|
-
margin-right: 10px
|
16
|
-
&:last-child
|
17
|
-
margin-right: 0
|
18
|
-
|
19
|
-
.i18n-viz
|
20
|
-
cursor: help
|
21
|
-
background: lightyellow !important
|
22
|
-
&:hover
|
23
|
-
color: black
|
24
|
-
background: yellow !important
|