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

[NEW-FEATURE] Implement string localization and interpolation #98

Closed
PTKu opened this issue Feb 24, 2023 · 3 comments · Fixed by #99
Closed

[NEW-FEATURE] Implement string localization and interpolation #98

PTKu opened this issue Feb 24, 2023 · 3 comments · Fixed by #99
Assignees
Milestone

Comments

@PTKu
Copy link
Contributor

PTKu commented Feb 24, 2023

No description provided.

@PTKu
Copy link
Contributor Author

PTKu commented Feb 27, 2023

  • create list of all localizable plc string using compiler API by iteration <# + #> '<#This is localizable, something#>` = 'This_is_localizable_comma_something'.

  • '(A1) <#Horizonal cylinder#>' = 'Horizontal_cyclinder'

  • '(A2) <#Horizonal - cylinder#>' = 'Horizontal__DASH__cyclinder'

  • '(A2) <# 1 Horizonal - cylinder#>' = '_ONE__Horizontal__DASH__cyclinder'

  • from the list create resx file for given

  • consider possibility of overriding the translation from a superset resx file in the end user application.

@Brano5
Copy link
Collaborator

Brano5 commented Feb 27, 2023

/cib

@PTKu
Copy link
Contributor Author

PTKu commented Feb 27, 2023

PTKu pushed a commit that referenced this issue Feb 27, 2023
@PTKu PTKu closed this as completed in #99 Mar 1, 2023
PTKu added a commit that referenced this issue Mar 1, 2023
* Create draft PR for #98

* Create project for resx compiler

* added fundamentals for string localization and some basic testing

* added wraper with location of localized string to dictionary

* abstract legalacrobatics into ix.compiler project

* Create ResxManager

* added support for attributeName pragmas, added support for multiple localized strings

* Change options for launchSettings, small refactoring

* Added test for CreateIdentifier and GetOnlyLocalizedString

* Added more supported symbols, change to relative path in comments

* adds tests to L1,2,3

---------

Co-authored-by: Brano5 <[email protected]>
Co-authored-by: Branko Zachemsky <[email protected]>
Co-authored-by: Dávid Špavor <[email protected]>
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

Successfully merging a pull request may close this issue.

3 participants