Blame the dev, not the framework. There's probably a pretty severe syntax error somewhere in their JS, that's usually what stops Angular from rendering the DOM.
We actually used angular-translate and then switched over to gettext, because:
Translate deals with string id's as the source "language", which means that if something wasn't translated, the user will see "BUTTON_TEXT", whereas gettext uses English (or any other language) as the source and falls back to it.
It was kind of a pain to maintain, since you need to keep track of the language files manually. For example you add HEADER_2, that needs to be added to the file for each of the languages that you're supporting. Also you need to keep track of the ones you're removing, otherwise your files get bloated. Gettext has Grunt/Gulp tools to extract and later compile the translations for you, which you could then automatically push to a translation service (we use Transifex). There were some for translate, but they were regex-based and you know that good ol' saying about parsing HTML with regex.
Our backend is using Django which also has gettext by default. Not a big deal, but at least our translation files are consistent. Also, if it's your thing, you could have one large translation files with strings shared across the frontend and backend.
The couple of drawbacks for gettext are:
It doesn't have the "translate-values" directive, which means that you have the raw Angular expressions in your source string. This hasn't been a big deal so far.
Angular-translate seems to have a bigger community behind it. This also hasn't been a problem for us.
That kind of thing would really make me reconsider flying with them. I mean, I'm sure the planes are safe, I just wouldn't trust them to get me and my luggage on the right plane.
But did the guy who created the website also create the booking system that tells that guy which luggage goes on which plane? (Or hell, is it even a separate system?) I'm not worried about the people, I'm worried about ending up in Mumbai because of crappy programming.
48 comments
nice trips
Consider them checked
tfw OP was just 2*36=72 posts too early for quads (/4effdf instead of /4effff)
http://redd.it/4effff/
Just checking.
Edit: Aw, it's a spam post.
Fucking Angular.
Blame the dev, not the framework. There's probably a pretty severe syntax error somewhere in their JS, that's usually what stops Angular from rendering the DOM.
I'm pretty sure you're not supposed to wrap a variable in quotes when you're data-binding it. That could be the problem.
What percent of frontend devs actually fix every JS error hidden in the console?
Still, fucking Angular.
Huh, I've used Twig but not Angular, didn't realize how similar the syntax is.
It might be Twig. I only assumed it was Angular because of the {{}}.
{{}} is actually mustache notation, which Handlebars (a popular variant) uses
Eventually it got pulled into angular which is younger than both of those libraries.
I didn't know how many frameworks used {{}}.
Django's templating system liquid also uses the same syntax.
They forgot to
ngCloakWow, I didn't know about this until now. Thanks!
Eh, cloak won't fix a problem with digest...
Yup, better translate email, card and flight number
Using filters on EVERYTHING is the mark of an angular newbie. This kills page performance.
Angular-gettext > Angular-translate.
Why's that? I'm probably going to have to internationalize an angular page in the coming months, so I'm looking for options.
We actually used angular-translate and then switched over to gettext, because:
The couple of drawbacks for gettext are:
you know, http://i.imgur.com/Nrc5c1v.png happened to me just few weeks ago.
Aaah, softwaregore. Come for the funny pictures, stay for the incomprehensible programmer talk in the comments.
That kind of thing would really make me reconsider flying with them. I mean, I'm sure the planes are safe, I just wouldn't trust them to get me and my luggage on the right plane.
I'm pretty sure the guy handling your luggage didn't create their website.
But did the guy who created the website also create the booking system that tells that guy which luggage goes on which plane? (Or hell, is it even a separate system?) I'm not worried about the people, I'm worried about ending up in Mumbai because of crappy programming.
ugh snake_case variables ಠ_ಠ