PowerBiDevCamp/TranslationsBuilder

Issue while translating with en-IN culture

Opened this issue · 6 comments

Thanks for the tool.

While using updated translation builder to build the multilingual report in power bi. I am facing following issue.
System.Collections.Generic.KeyNotFoundException: The given key 'en-IN' was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at TranslationsBuilder.FormMain.LoadModel() in C:\DevCamp\TranslationsBuilder\TranslationsBuilder\Forms\FormMain.cs:line 48 at TranslationsBuilder.FormMain.onLoad(Object sender, EventArgs e) in C:\DevCamp\TranslationsBuilder\TranslationsBuilder\Forms\FormMain.cs:line 29
I thought to change the culture of the .pbix file to en-US using tabular editor; but it is not allowing me to change. Is there any way to add these culture into translation builder or else to edit the culture of the existing .pbix file.

I do have the same issue with en-GB!
image

System.Collections.Generic.KeyNotFoundException: The given key 'en-GB' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at TranslationsBuilder.FormMain.LoadModel() in C:\DevCamp\TranslationsBuilder\TranslationsBuilder\Forms\FormMain.cs:line 48
at TranslationsBuilder.FormMain.onLoad(Object sender, EventArgs e) in C:\DevCamp\TranslationsBuilder\TranslationsBuilder\Forms\FormMain.cs:line 29
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

@Jejetator; you need to modify the translation builder code and add the required culture in the supported language class.
Have a look at it: #3

Thanks,
I'mn ot sure how to so that!
I played with my Laptop language, and also modified a pbit using tabular editor.
I'm no having this message which is even more disturbing !
image

I think you have to add culture as en-US in the .pbix file using tabular editor. This might help you to connect to the translation builder.

Hi all,
I have decided to extend Translations Builder to support a much wider set of languages and locales including en-IN. These changes will be introduced when I publish Translations Builder version 2.2. Let me know if you are interested in trying out a preview build of v2.2. My tentative schedule is to find a few people to test the changes and then publish the release of version 2.2 before the end of April.