-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't load translations from xliffsDir during a convert (#73)
* Don't load translations from xliffsDir during a convert - we need a Project instance in order to do a convert - when the project instance was created, it attempts to load translations from the xliffsDir. However, now that translation loading from the xliffsDir happens recursively, the new Project attempted to load every xliff file in the xliffsDir directory (default: ".") which was waaaaay too big - now we pass in a flag to the project constructor that turns off loading of translations for a project that is only needed for convert. * Add a changeset
- Loading branch information
1 parent
45991a9
commit 5e58323
Showing
3 changed files
with
48 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
"loctool": patch | ||
--- | ||
|
||
- Fixed a problem where the project that convert needs to | ||
instantiate in order to run tried to find and load every | ||
single xliff file in the current directory recursively as | ||
translations file in the xliffDir. The problem comes in | ||
if there are many xliff files in the current directory | ||
or there are many directories underneath the current | ||
working directory. That caused start-up to take a really | ||
long time. | ||
- The fix is to for the convert action to turn off | ||
loading translation files when instantiating a project. | ||
They are not needed anyways. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters