Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
path: output/*nupkg
if-no-files-found: warn

#
# All the following are used only when building an installer after a merge
#

# --skip-duplicate allows retrying a workflow that failed with a partial push, skipping already published packages and publishing the rest.
- name: Publish NuGet packages to nuget.org
run: |
Expand All @@ -111,7 +115,6 @@ jobs:
if: github.event_name != 'pull_request'
continue-on-error: true

# All the following are used only when building an installer after a merge
- name: Build Msi
if: github.event_name != 'pull_request'
id: build_msi
Expand Down
81 changes: 0 additions & 81 deletions .github/workflows/localizations.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ GitVersionTaskAssemblyInfo.g.cs
Mercurial/
MercurialExtensions/
build/FLExBridge.files
/l10n/FlexBridge.en.xlf
28 changes: 21 additions & 7 deletions l10n/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
## FlexBridge

### Updating Crowdin with source string changes - NOT YET IMPLEMENTED
## FLEx Bridge Localization

The few FlexBridge strings that exist are in the FieldWorks crowdin project (https://crowdin.com/project/fieldworks)

### Updating Crowdin with source string changes

#### Using ExtractXliff - NOT YET IMPLEMENTED

**This cannot yet be implemented because ExtractXliff and FLEx Bridge have incompatible bitnesses**

The L10nSharp tool ExtractXliff is run on the project to get any updates to the source strings resulting in a new FlexBridge.en.xlf file.

Overcrowdin is used to upload this file to Crowdin.
Expand All @@ -13,23 +17,33 @@ This process is run automatically by a GitHub action if the commit comment menti
It can also be run manually as follows:
```
dotnet tool install -g overcrowdin
set CROWDIN_FIELDWORKS_KEY=TheApiKeyForTheFieldWorksProject
set CROWDIN_API_KEY=TheApiKeyForTheFieldWorksProject
msbuild l10n.proj /t:UpdateCrowdin
```

#### Using the XLF generated when running FLEx Bridge

Run FLEx Bridge, then:
```
dotnet tool install -g overcrowdin
set CROWDIN_API_KEY=TheApiKeyForTheFieldWorksProject
copy %LocalAppData%\SIL\FlexBridge\localizations\FlexBridge.en.xlf .
overcrowdin updatefiles
```

### Update with latest localizations (Run before building an installer, or to test)

Nuget packages for libpalso and chorus are used to get their localized xliff files.
Overcrowdin is used to download the latest translation data for FlexBridge from the FieldWorks project.

The resulting files are copied to the DistFiles/localizations folder
The resulting files are copied to the DistFiles/localizations folder.

This process is run by the Installer build on TeamCity
This process is run by the Installer build on GitHub Actions.

It can also be run manually as follows:
```
dotnet tool install -g overcrowdin
set CROWDIN_FIELDWORKS_KEY=TheApiKeyForTheFieldWorksProject
set CROWDIN_API_KEY=TheApiKeyForTheFieldWorksProject
msbuild l10n.proj /t:restore
msbuild l10n.proj /t:GetLatestL10ns
```
4 changes: 2 additions & 2 deletions l10n/crowdin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"project_identifier": "fieldworks",
"api_key_env": "CROWDIN_API_KEY",
"base_path": ".",
"branch": "FieldWorks-9.1",
"branch": "FLEx-Bridge",
"files": [
{
"source": "FlexBridge.en.xlf",
"translation": "/%locale%/FlexBridge/FlexBridge.%locale%.xlf",
"translation": "/%locale%/FlexBridge.%locale%.xlf",
}
]
}