← Back to team overview

dhis2-users team mailing list archive

Re: CSV import for translations

 

Hi Georgi,

I think the best solution would be a script which would handle the CSV
file, until it gets reimplemented in the core. It should be pretty
straightforward. If you can send me an example, I should be able to provide
a simple script to deal with the uploading of the translations to the
server from a CSV file.


Regards,
Jason


On Thu, Mar 16, 2017 at 10:08 AM, Georgi Chakarov <
georgi@xxxxxxxxxxxxxxxxxxx> wrote:

> I have new clients that are already set up in 2.25. Do you suggest to
> downgrade to 2.24, upload and upgrade to 2.25?
>
>
>
> *From:* Knut Staring [mailto:knutst@xxxxxxxxx]
> *Sent:* Thursday, March 16, 2017 11:07 AM
> *To:* Georgi Chakarov <georgi@xxxxxxxxxxxxxxxxxxx>
> *Cc:* dhis2-users@xxxxxxxxxxxxxxxxxxx; Morten Olav Hansen <
> morten@xxxxxxxxx>
>
> *Subject:* Re: [Dhis2-users] CSV import for translations
>
>
>
> I suppose you could import to 2.24 and upgrade.
>
>
>
> On Mar 16, 2017 4:00 PM, "Georgi Chakarov" <georgi@xxxxxxxxxxxxxxxxxxx>
> wrote:
>
> Hello Morten,
>
>
>
> Thanks a lot for the quick response! I will definitely report this issue
> in JIRA, because it is really handy and also quicker to compile all
> translation in excel and then quickly import in DHIS2. I’ve had clients
> with 500+ data elements and 150+ indicators, so translation names, short
> names and description for these object could be quite a big task.
>
>
>
> Thanks again,
>
>
>
> Georgi
>
>
>
> *From:* Morten Olav Hansen [mailto:morten@xxxxxxxxx]
> *Sent:* Thursday, March 16, 2017 8:44 AM
> *To:* Georgi Chakarov <georgi@xxxxxxxxxxxxxxxxxxx>
> *Cc:* dhis2-users@xxxxxxxxxxxxxxxxxxx
> *Subject:* Re: [Dhis2-users] CSV import for translations
>
>
>
> Hi Georgi
>
>
>
> We don't currently support bulk import of translations anymore, as you
> might have noticed the model has changed a bit when it comes to
> translations. The way it works now, is that the translations are directly
> on the object itself, so what is possible.. is to download the full object
> and then add your translations in the translation array.
>
>
>
> { .., translations: [{locale: "", property: NAME/SHORT_NAME/DESCRIPTION/FORM_NAME,
> value: ""}] }
>
>
>
> In 226, we also have a new translation app included in the core.
>
>
>
> I understand that bulk imports can be useful, so please feel free to
> create an issue for it in JIRA (jira.dhis2.org) and we will try and have
> a look at it for 227.
>
>
> --
>
> Morten Olav Hansen
>
> Senior Engineer, DHIS 2
>
> University of Oslo
>
> http://www.dhis2.org
>
>
>
> On Wed, Mar 15, 2017 at 10:55 PM, Georgi Chakarov <
> georgi@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Hello!
>
> A quick question on translations: Has csv import for translations been
> removed in DHIS2 versions higher than 2.23?
>
>
>
> I was using 2.23 and imported translation for various objects using csv
> files. Now I am using 2.25 and although in the Import/Export app this
> functions appears to be available nothing happens when I try to import
> translations. Any idea?
>
>
>
> Is there a way I can bulk import translations in 2.25?
>
>
>
> Thanks in advance!
>
> Georgi
>
>
>
>
> Georgi Chakarov, CIA | georgi@xxxxxxxxxxxxxxxxxxx | +1-647-478-5634 x 104
> <(647)%20478-5634> | LogicalOutcomes c/o Centre for Social Innovation,
> 720 Bathurst Street, Toronto Canada M5S 2R4 | *You may unsubscribe from
> receiving commercial electronic messages from LogicalOutcomes by emailing *
> *info@xxxxxxxxxxxxxxxxxxx* <info@xxxxxxxxxxxxxxxxxxx>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.pickering@xxxxxxxxx
tel:+46764147049

Follow ups

References