Questions tagged [angular-gettext]

Super-simple translation support for Angular.JS

23 questions
6
votes
1 answer

angularjs/gettext: how to translate text in attributes

I have a piece of html like this Now, when I want to translate it, it looks like this The reason why I dont have {{ and }} is because the 'bar' directive binds the title to…
Jeanluca Scaljeri
  • 26,343
  • 56
  • 205
  • 333
3
votes
1 answer

Walktrought installing angular-gettext in ionic

I'me trying to get angular-gettext to work in ionic. Could someone explain how to do that? There aren't any good explanations out there yet.
2
votes
0 answers

Arabian language doesn't work in angular-gettext?

I prepared ar.po file with translations, compile it into translations.js (along with other languages), but when I try setCurrentLanguage("ar"); it doesn't appears, I see default string constants instead. However, other languages work perfect, for…
splash27
  • 2,057
  • 6
  • 26
  • 49
2
votes
1 answer

gettext module in angularjs does does not translate gettextCatalog.getString() in controller

Im using gettext module for angular to handle my translations. This works almost perfectn. gettext Now i have 2 controllers. 1 is called basecontroller other controllers are per view. so the base controller is attached to the html tag and using…
Reza
  • 880
  • 1
  • 10
  • 29
1
vote
0 answers

Angularjs Gettext Translate from mongodb database

I am using Angularjs gettext in my AngularJS Full-Stack generator Project. It is working very good for static text. But I need to capture data from the user in multi-language which I'll store in MongoDB database. For MongoDB multilanguage schema, I…
Divyesh Savaliya
  • 2,692
  • 2
  • 18
  • 37
1
vote
1 answer

Angular-gettext doesn't update strings generated in code

When I set language like this gettextCatalog.setCurrentLanguage(langString); it doesn't work to my side-nav menu. My side menu can be in one of two states: expanded or collapsed, so I use ng-include for side menu and change it when switching states.…
splash27
  • 2,057
  • 6
  • 26
  • 49
1
vote
0 answers

How to compile for csharp using angular-gettext?

How to generate translation.cs file using the angular-gettext? I am looking at https://github.com/rubenv/angular-gettext-tools/pull/117 link it says it has support for csharp and and according to its main site…
razzy
  • 198
  • 1
  • 10
1
vote
2 answers

Why translations.js does not contain any string from .pot file during nggettext_compile?

grunt.loadNpmTasks('grunt-angular-gettext'); grunt.initConfig({ nggettext_extract:{ pot:{ files:{ 'po/template.pot':['**/*.html'] } } }, nggettext_compile: { all:{ files:{ 'translations.js':['po/*.po'] } …
1
vote
1 answer

nggettext_compile does not extract any strings from my .PO file

I have a file po/el.po containing translations: msgid "" msgstr "" "Project-Id-Version: \n" "PO-Revision-Date: 2015-07-01 10:49+0000\n" "Language: el\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms:…
fisharebest
  • 1,300
  • 10
  • 16
1
vote
2 answers
1
vote
1 answer

How to use angular-gettext in a config phase?

I'm using angular-gettext, angular-breadcrumb and angular-ui-router. I have my app configuration similar to this: app.config(function($stateProvider) { $stateProvider.state('welcome', { url : '/', templateUrl: 'index.html', …
Knut Holm
  • 3,988
  • 4
  • 32
  • 54
1
vote
1 answer

angular-gettext : change language dynamically?

I have used angular gettext in my app. I have two languages as of now and want to switch the language in the UI depending on users preferences. I have a button for two languages- DE and EN. In the controller method i have set the language: …
user2439903
  • 1,277
  • 2
  • 34
  • 68
0
votes
1 answer

angular-gettext does not pick the strings from .PO files

I have installed everything according to documentation. Some of the things are working as per the documentation. Is there something like Django translation which automatically replaces the translation for specific language if you select those lang…
Sagar
  • 159
  • 2
  • 17
0
votes
1 answer

Translating JSON file with Angular Gettext

I am using gettext to translate my AngularJS site - it all works fine where I have HTML attributes that I can add 'translate' to. However I also have quite a large and complex JSON file which needs translating, which includes arrays and objects. Is…
jamesthemullet
  • 443
  • 4
  • 18
0
votes
1 answer

angular-gettext doesn't work despit displaying no erroe

I started a new Angular project for a local company three days ago and they told me today that they wanted their web application to be in French AND in English. So I found the angular-gettext module which seemed to be a good solution. I followed…
Y.Uzumaki
  • 119
  • 1
  • 3
  • 12
1
2