These are chat archives for ushahidi/Community

19th
Oct 2015
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:22
Q1) I’m trying to add locale to the deployed platform-client app
should I add $translateProvider.translations(‘<locale>', require('../locales/<locale>.json')); line to /app/common/config/locale-config.js?
I’m asking this because even if I put the locale.json file inside /app/common/locales folder, the devtool console says the locale.json couldn’t be located
It seems like the app after deployment tries to find the locales/ folder from /www folder. But neither npm nor gulp script automatcally move the locales folder to www/.
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:27
Q2) I’m trying to deploy the app on Heroku
What env variables should I modify to make the app production-ready?
Ushbot
@ushbot
Oct 19 2015 08:28
[Robbie Mackay, Ushahidi] gulp should be copying the locales into server/www I think..
[Robbie Mackay, Ushahidi] There's a gulp task we run during release to pull the latest translations from transifex
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:28
really?
Ah
Ushbot
@ushbot
Oct 19 2015 08:29
[Robbie Mackay, Ushahidi] "gulp transifex-download" should grab the transifex files
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:29
If there’s no translation available, then there’s no way to add manually?
Ushbot
@ushbot
Oct 19 2015 08:29
[Robbie Mackay, Ushahidi] then the next "gulp" or "gulp build" run should copy them into server www
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:29
I need ko-KR locale, but that’s not available yet
ah
hmm...
Ushbot
@ushbot
Oct 19 2015 08:30
[Robbie Mackay, Ushahidi] hrm if you manually add them to server/www/locales I think it should just work provided the file name is right.
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:30
Yeah that should work I think
but since www/ is not included in git commit, I thought there would be more ‘normal’ way to do it
But thanks
And could you please tell me how to make the app configuration to production mode?
I’m not well versed with node apps nor gulp so….
Ah one more
I deployed the source code using heroku button found at github
After deployment, and when I check the site using devtools, I see error “couldn’t locate style.min.css.map
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (style.min.css.map, line 0)
Is it OK?
Ushbot
@ushbot
Oct 19 2015 08:41
[Robbie Mackay, Ushahidi] that should be fine if the apps working..
[Robbie Mackay, Ushahidi] .map files are only needed for debugging
[Robbie Mackay, Ushahidi] A heroku build won't really work in production mode since it won't install everything it needs.
[Robbie Mackay, Ushahidi] Our npm config isn't quite right..
[Robbie Mackay, Ushahidi] Sorry its late here so I'll probably drop off soon.. But drop other queries in github issues, or just leave them here and I'll loop back later.
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:45
OK
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 08:57
Q) It seems like gulp build does not automatically copy /app/common/locales folder to /www
I’ve tested the command gulp, gulp build, but the folder is not copied to /www
gulp.task('build', ['sass', 'css', 'font', 'browserify']);
this is the current gulp build task
transifex is not an option since there’s no translation for ko-KR
Also, I’d like to avoid moving locales/ to www/ manually, add this as tracking file, then commit. It is because this might be overrided by Heroku build process which generates www/ by running the gulp tasks by itself
Kyoungrok Jang
@kyoungrok0517
Oct 19 2015 09:02
Thanks in advance. Very kind of you to answer to my continual questions :)
Ushbot
@ushbot
Oct 19 2015 14:49
[Jess Shorland, Ushahidi] is there any reason we wouldn't design a USSD interaction to collect structured posts via SMS?
[Jess Shorland, Ushahidi] @all ^^
[Brandon Rosage, Ushahidi] it's Monday...what's USSD?
[Angela Oduor Lungati, Ushahidi] @Jess we had someone do this for v2 - but it would need to be in partnership with telcos
[Angela Oduor Lungati, Ushahidi] let me find you a link
[Jess Shorland, Ushahidi] hmmm this interests me
[Jess Shorland, Ushahidi] unstructured supplementary service data
[Angela Oduor Lungati, Ushahidi] (also for you @Brandon )
[Jess Shorland, Ushahidi] @Brandon
[Angela Oduor Lungati, Ushahidi] yeah, the good folks at Praekelt did this..
[Brandon Rosage, Ushahidi] amazing...I was just talking about this with the Clarion University folks.
[Jess Shorland, Ushahidi] we could actually just design an interface over it too for those without strong data connections who still want to submit
[Brandon Rosage, Ushahidi] this is a very complicated UX matter, only because the USSD "structure" would have to map to whatever "structure" the deployment was using. So we'd have to account for that.
[Angela Oduor Lungati, Ushahidi] i could reach out to them on feasibility of designing this for v3(i think design and build wouldn't be the uphill task here - it's the cost implications + telcos here)
[Jess Shorland, Ushahidi] yeah, for sure
[Jess Shorland, Ushahidi] i'm just thinking that one of the consistent issues i've come across from people managing large deployments is the complete lack of structure in sms reports
[Jess Shorland, Ushahidi] so i may put this into an epic
[Jess Shorland, Ushahidi] not now, but sometime
[Angela Oduor Lungati, Ushahidi] Repo - for reference(and review) https://github.com/smn/go-ushahidi

[Link]

<p><b><a href="[https://github.com/smn/go-ushahidi](https://github.com/smn/go-ushahidi)">smn/go-ushahidi</a></b></p>

<p>Contribute to go-ushahidi development by creating an account on GitHub.</p>

[Brandon Rosage, Ushahidi] please flag/cc me when this hits the roadmap, so I can dig in and design it into the product.
Ushbot
@ushbot
Oct 19 2015 15:27
[Jess Shorland, Ushahidi] will do @brandon!!!
Ushbot
@ushbot
Oct 19 2015 17:37
[Charlie Harding, Ushahidi] Shoot I thought this mtg was getting kicked to next week
[Charlie Harding, Ushahidi] Sorry to have missed
Ushbot
@ushbot
Oct 19 2015 19:03
[Robbie Mackay, Ushahidi] V3 huddle?