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

Issue with language handling in the Tolgee plugin for Unreal Engine #27

Open
eternalcake opened this issue Jan 23, 2025 · 0 comments
Open

Comments

@eternalcake
Copy link

Hello,

I am using your plugin and have encountered an issue. Could you please help me understand what I might be doing wrong?

The problem is related to handling multiple languages in my project. I have several languages that are not fully translated yet, so I don't want to include them in the final build. Currently, the language settings in my project are set to English only. Additionally, during the build process, English is explicitly specified as the only language to include.

In the game, I have a language selection slider. Since there is only one language available at the moment, the slider defaults to the system language. However, regardless of the system language, English is always enforced.

When the plugin is enabled during the build, the game initially defaults to English, as expected. However, if I interact with the language selection slider and then apply the settings, part of the game switches to the system language (if it differs from English).

If I build the project without the plugin, everything works as expected: the language remains unchanged.

Following the documentation, I have disabled "Live Translation Updates" in the project, but this did not resolve the issue.

The plugin is installed as a submodule.
Tolgee version is v1.4.1
Engine version is 5.3.2

Here is the relevant build log:

LogTolgee: Display: Waiting for translation data. Retrying in 0.100000 second.
LogTolgee: Display: Got translation data.
LogTolgee: Display: Localized dictionary successfully saved to file: D:/Server/D4i4p_vP/0/sample/Content/Tolgee/Translations.json

My Tolgee plugin settings in Config/DefaultTolgee.ini:

[/Script/Tolgee.TolgeeSettings]
ApiKey=API_KEY  
ApiUrl="API_URL"  
ProjectId=1  
+Languages=en  
+Languages=es  
+Languages=de  
+Languages=ja  
bLiveTranslationUpdates=False  
UpdateInterval=60.000000 

Tolgee.uplugin:

{
  "FileVersion": 3,
  "VersionName": "0.1",
  "EngineVersion": "5.3",
  "FriendlyName": "Tolgee",
  "Description": "Localization tool which makes the localization process simple. Easy to integrate to React, Angular and other applications.",
  "Category" : "Localization",
  "CreatedBy": "Tolgee",
  "CreatedByURL": "https://tolgee.io/",
  "DocsURL": "https://tolgee.io/integrations/unreal",
  "MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/2757e202f8f3408bbf66f65d26223398",
  "SupportURL": "https://tolg.ee/slack",
  "EnabledByDefault": false,
  "CanContainContent": false,
  "Modules": [
    {
      "Name": "Tolgee",
      "Type": "Runtime",
      "LoadingPhase": "Default",
      "WhitelistPlatforms": [ "Android", "IOS", "Linux", "Mac", "TVOS", "Win64" ]
    },
    {
      "Name": "TolgeeEditor",
      "Type": "Editor",
      "LoadingPhase": "Default",
      "WhitelistPlatforms": [ "Win64", "Mac", "Linux" ]
    }
  ],
  "Plugins": [
    {
      "Name": "WebBrowserWidget",
      "Enabled": true
    }
  ]
}

Build command used:

%G_RUN_UAT_FILE% ^
-ScriptsForProject=%G_PROJECT_PATH%\Sample.uproject ^
Turnkey ^
-command=VerifySdk ^
-platform=%L_PLATFORM% ^
-UpdateIfNeeded ^
-project=%G_PROJECT_PATH%\Sample.uproject ^
BuildCookRun ^
-project=%G_PROJECT_PATH%\Sample.uproject ^
-unrealexe=%G_RUN_UNREAL_EXE_FILE% -installed ^
-archivedirectory=%G_BUILD_PATH% -archive ^
-clientconfig=%L_BUILD_CONFIGURATION% -target=SampleGame ^
-platform=%L_PLATFORM% ^
-package -pak -iostore -compressed ^
-build -cook -stage -RetainStagedDirectory ^
-CookCultures=en-US -distribution ^
-prereqs

Could you please provide guidance on how to resolve this issue? Thank you in advance for your help!
Best regards, Alex.

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

1 participant