-
Notifications
You must be signed in to change notification settings - Fork 94
OCC-121: Upload translation files to Crowdin #379
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
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
243eac5
Add Crowdin upload script and config template.
sarahelsaig f14aac5
Temporarily add the synchronize-with-crowdin job to the build-and-tes…
sarahelsaig fa211e3
Allow crowdin in spelling.
sarahelsaig 0c40878
remove unnecessary command
sarahelsaig fcecafd
Move synchronize-with-crowdin to publish-nuget.
sarahelsaig 2a4ed77
Add step to also update the Translations repo.
sarahelsaig ee7b9cd
set upstream
sarahelsaig 238c242
Add some tracing echoes.
sarahelsaig f6deb45
Log specifically around git commit.
sarahelsaig f2177ef
Hopefully fix commit message problem.
sarahelsaig a828855
Add git config.
sarahelsaig 0243565
git add --all
sarahelsaig a16c14b
Change command order.
sarahelsaig 0b89961
Change command order again.
sarahelsaig 985592b
Use different token.
sarahelsaig 91add96
Clone with the token in the first place.
sarahelsaig ea120ac
git push without the set-upstream
sarahelsaig 4da8bc2
Try using SSH instead.
sarahelsaig 83aa6dc
Write key into the default location.
sarahelsaig 67b43d7
create ssh directory
sarahelsaig 8a4ffc4
protect key file
sarahelsaig fb7a091
Move job into publish-nuget.
sarahelsaig ec1c904
Upload the pot files too.
sarahelsaig 290d341
buildTransitive
sarahelsaig 17d9556
Merge remote-tracking branch 'origin/main' into issue/OCC-121
sarahelsaig 00f223b
fix spacing.
sarahelsaig 8c8a02c
Add Crowdin badge.
sarahelsaig dcbcea9
Crowdin sync workflow.
sarahelsaig 56beb73
Try using git.
sarahelsaig b3a394e
Merge remote-tracking branch 'origin/main' into issue/OCC-121
sarahelsaig 890a067
Try --unset-all based on SO advice.
sarahelsaig 0c1bc7b
Use other token.
sarahelsaig 3650d69
Use gh tool.
sarahelsaig 71083f8
Add GH_TOKEN environment variable.
sarahelsaig 8ac1d06
Maybe these are not needed.
sarahelsaig 6e89e07
revert
sarahelsaig 5357c2b
Use TRANSLATIONS_TOKEN.
sarahelsaig 9d81659
Use LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN.
sarahelsaig c7f82b2
revert
sarahelsaig 09b0f3b
Go hack to https clone
sarahelsaig 0c69d7e
Fix typo.
sarahelsaig 4d3c33f
Switch over to the real Lombiq Bot token.
sarahelsaig d8cd4c8
Fix localization string mix-up.
sarahelsaig a67bfc5
Plug in localization package from Cloudsmith.
sarahelsaig 84fb780
update
sarahelsaig ad23b63
Add UI test.
sarahelsaig bac95a6
Fix UI test.
sarahelsaig 6a0f1be
Formatting NuGet.config
Piedone be39412
Preventing Cloudsmith from blocking NuGet restore
Piedone 05660f4
Add a mention of the translation project in readme and docs.
sarahelsaig bb8e098
Update .github/workflows/publish-nuget.yml
sarahelsaig 04a348c
Is this actually needed?
sarahelsaig e12e3a2
Minor cleanup.
sarahelsaig 0ab33dd
Merge remote-tracking branch 'origin/issue/OCC-121' into issue/OCC-121
sarahelsaig 57225da
Fix MD.
sarahelsaig 43ee28e
This is not needed.
sarahelsaig bd26417
Add dotnet-tools.json.
sarahelsaig 9b39a89
newline
sarahelsaig 75b5b52
Merge remote-tracking branch 'origin/main' into issue/OCC-121
sarahelsaig 5ddbc90
Use the same Authors value found in the main OC projects.
sarahelsaig d657399
Update Readme.md
sarahelsaig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,13 @@ | ||
| { | ||
| "version": 1, | ||
| "isRoot": true, | ||
| "tools": { | ||
| "orchardcorecontrib.poextractor": { | ||
| "version": "1.2.0", | ||
| "commands": [ | ||
| "extractpo" | ||
| ], | ||
| "rollForward": false | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
|
Piedone marked this conversation as resolved.
|
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| # Orchard Core Commerce | ||
|
|
||
| [](https://www.nuget.org/packages/OrchardCore.Commerce/) [](https://cloudsmith.io/~orchardcore/repos/commerce/packages/detail/nuget/OrchardCore.Commerce/latest/) [](https://orchardcore.net/discord) | ||
| [](https://discord.gg/rYHxgqU5) [](https://www.nuget.org/packages/OrchardCore.Commerce/) [](https://cloudsmith.io/~orchardcore/repos/commerce/packages/detail/nuget/OrchardCore.Commerce/latest/xsp=True/) [](https://crowdin.com/project/orchard-core-commerce) | ||
|
|
||
| The commerce module for [Orchard Core](https://github.com/OrchardCMS/OrchardCore). | ||
|
|
||
| GitHub repositories for this project: | ||
|
|
||
| - [OrchardCore.Commerce](https://github.com/OrchardCMS/OrchardCore.Commerce): The code of OrchardCore.Commerce. | ||
| - [OrchardCore.Commerce.Translations](https://github.com/OrchardCMS/OrchardCore.Commerce.Translations): Localization and translation using Crowdin. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
38 changes: 38 additions & 0 deletions
38
test/OrchardCore.Commerce.Tests.UI/Tests/BasicTests/LocalizationTests.cs
This file contains hidden or 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,38 @@ | ||
| using Lombiq.Tests.UI.Attributes; | ||
| using Lombiq.Tests.UI.Extensions; | ||
| using Lombiq.Tests.UI.Services; | ||
| using OpenQA.Selenium; | ||
| using Shouldly; | ||
| using Xunit; | ||
|
|
||
| namespace OrchardCore.Commerce.Tests.UI.Tests.BasicTests; | ||
|
|
||
| public class LocalizationTests : UITestBase | ||
| { | ||
| public LocalizationTests(ITestOutputHelper testOutputHelper) | ||
| : base(testOutputHelper) | ||
| { | ||
| } | ||
|
|
||
| [Theory, Chrome] | ||
| public Task NuGetPackageWithLocalizationShouldApplyTranslatedText(Browser browser) => | ||
| ExecuteTestAfterSetupAsync( | ||
| async context => | ||
| { | ||
| const string cssTranslatedTextElement = | ||
| ".content-product:has(a[href*='/testdiscountedproduct']) .field-name-discount-part-new-price strong"; | ||
|
|
||
| // Switch to another language (Hungarian) in the admin. | ||
| await context.SignInDirectlyAndGoToAdminRelativeUrlAsync("/Settings/localization"); | ||
| await context.ClickReliablyOnAsync(By.XPath("//tr[td[1]/span[contains(., 'en-US')]]//a[@title='Remove culture']")); | ||
| await context.ClickReliablyOnAsync(By.ClassName("save")); | ||
|
|
||
| // Verify that localized text is visible on the home page. | ||
| await context.GoToHomePageAsync(); | ||
| context | ||
| .Get(By.CssSelector(cssTranslatedTextElement)) | ||
| .GetTextTrimmed() | ||
| .ShouldBe("Kedvezményes ár adóval:"); | ||
|
Piedone marked this conversation as resolved.
|
||
| }, | ||
| browser); | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.