Skip to content

Commit

Permalink
Merge pull request #96 from Jesus89/localization
Browse files Browse the repository at this point in the history
Add localization usig angular-gettext
  • Loading branch information
Jesus89 authored Nov 21, 2016
2 parents e5c20b5 + 9e74822 commit 7a7a51b
Show file tree
Hide file tree
Showing 27 changed files with 4,305 additions and 853 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.bin
*.blif
*.log
*.mo

.tmp
dist
Expand All @@ -16,3 +17,4 @@ bower_components
app/profile.json
app/_cache
app/_build
app/resources/locale/**/*.json
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ npm run dist

NOTE: in Mac OS X this commmand generates also a **dmg** package.

## Languages

| Language | Translated strings |
|:----------:|:------------------------------------------:|
| English | ![Progress](http://progressed.io/bar/100) |
| Spanish | ![Progress](http://progressed.io/bar/100) |
| French | ![Progress](http://progressed.io/bar/87) |
| Basque | ![Progress](http://progressed.io/bar/80) |
| Galician | ![Progress](http://progressed.io/bar/78) |

**Contribute**: add or update the [translations](https://github.com/FPGAwars/icestudio/tree/develop/app/resources/locale) by following the [next instructions](https://angular-gettext.rocketeer.be/dev-guide/translate/#poedit).

## Version 0.1

![][icestudio-0.1-demo]
Expand Down Expand Up @@ -114,6 +126,7 @@ NOTE: in Mac OS X this commmand generates also a **dmg** package.
* [Xoan Sampaiño](https://github.com/xoan)
* [Salvador E. Tropea](https://github.com/set-soft)
* [Democrito](https://github.com/Democrito)
* [Martoni](https://github.com/Martoni)
* v0.1
* [Miguel Sánchez de León Peque](https://github.com/Peque)

Expand Down
3 changes: 2 additions & 1 deletion app/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"async": "^1.5.2",
"svg-pan-zoom": "^3.2.9",
"alertify-js": "^1.8.0",
"jquery-resize": "*"
"jquery-resize": "*",
"angular-gettext": "^2.3.8"
}
}
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<script src="bower_components/async/dist/async.min.js"></script>
<script src="bower_components/svg-pan-zoom/dist/svg-pan-zoom.min.js"></script>
<script src="bower_components/alertify-js/build/alertify.min.js"></script>
<script src="bower_components/angular-gettext/dist/angular-gettext.min.js"></script>
<!-- endbower -->
<!-- endbuild -->
<!-- build:js scripts/main.js -->
Expand Down
56 changes: 56 additions & 0 deletions app/resources/blocks/labels.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// In this file the blocks labels are annotated for translation

/// Bit
gettext('bit')
/// Config
gettext('config')
/// Pull up
gettext('pull_up')
/// Pull up inv
gettext('pull_up_inv')
/// Tri-state
gettext('tri_state')
/// Logic
gettext('logic')
/// Comb
gettext('comb')
/// Demux 1:2
gettext('demux_1_2')
/// Demux 1:4
gettext('demux_1_4')
/// Demux 1:8
gettext('demux_1_8')
/// Hex 7 Segment CC
gettext('hex_7seg_cc')
/// Hex 7 Segment CA
gettext('hex_7seg_ca')
/// Mux 2:1
gettext('mux_2_1')
/// Mux 4:1
gettext('mux_4_1')
/// Gate
gettext('gate')
/// And
gettext('and')
/// Nand
gettext('nand')
/// Nor
gettext('nor')
/// Not
gettext('not')
/// Or
gettext('or')
/// Xnor
gettext('xnor')
/// Xor
gettext('xor')
/// Sec
gettext('sec')
/// D flip-flop async
gettext('dff_ar')
/// D flip-flop async
gettext('dff_sr')
/// T flip-flop async
gettext('tff_ar')
/// T flip-flop
gettext('tff_sr')
10 changes: 10 additions & 0 deletions app/resources/examples/labels.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// In this file the examples labels are annotated for translation

/// 1. Basic
gettext('1_basic')
/// 1. Led on
gettext('1_led_on')
/// 2. Switch led
gettext('2_switch_led')
/// 3. Switch and gate
gettext('3_switch_and_gate')
142 changes: 0 additions & 142 deletions app/resources/locale/en.json

This file was deleted.

Loading

0 comments on commit 7a7a51b

Please sign in to comment.