Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion errors #59

Open
akougblenou opened this issue Jun 13, 2017 · 4 comments
Open

Conversion errors #59

akougblenou opened this issue Jun 13, 2017 · 4 comments

Comments

@akougblenou
Copy link

I have notice that I had few conversion issues when using the converter and it might have to do with the architecture of my json.

My json looks like this:

{
  "title": "Table",
  "link_column": "Number/Reference",
  "state_column": "State",
  "type_column": "Type",
  "offer_column": "Offer",
  "date_column": "Creation Date",
  "state_types": [
    {"state": "Connected"},
    {"state": "Disconnected"},
    {"state": "Stalled"},
    {"state": "Unknown"}
  ],
  "type_types": [
    {"type": "ADSL"},
    {"type": "VDSL"},
    {"type": "SDSL"},
    {"type": "FIBER"},
    {"type": "SHARED_FIBER"}
  ]
}

The civilities (not sure if that is a real word) is used for dropdown purposes and as a result, I get this output:

msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2017-06-13T09:50:07.336Z\n"
"PO-Revision-Date: 2017-06-13T09:50:07.336Z\n"
"Language: en\n"

msgid "title"
msgstr "Table"

msgctxt "column"
msgid "link"
msgstr "Number/Reference"

msgctxt "column"
msgid "state"
msgstr "State"

msgctxt "column"
msgid "type"
msgstr "Type"

msgctxt "column"
msgid "offer"
msgstr "Offer"

msgctxt "column"
msgid "date"
msgstr "Creation Date"

msgctxt "types"
msgid "state"
msgstr ""
"[object Object]\n"
"[object Object]\n"
"[object Object]\n"
"[object Object]"

msgctxt "types"
msgid "type"
msgstr ""
"[object Object]\n"
"[object Object]\n"
"[object Object]\n"
"[object Object]\n"
"[object Object]"

Is this type of formatting not possible at all ?

@jamuhl
Copy link
Member

jamuhl commented Jun 18, 2017

Sorry for the late reply. Would accept a pull request.

@perrin4869
Copy link
Contributor

@AKFourSeven I missed this, I'll check your PR if you send it :D

@akougblenou
Copy link
Author

By sending a pull request you imply that this is not possible as it with the current version of gettext-converter ?

@perrin4869
Copy link
Contributor

Yeah, seems so =/
Not sure exactly how to handle this though, leave this up to you if you wanna implement this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants