Skip to content

DREF: Add Static translation and feedbacks#2668

Merged
szabozoltan69 merged 3 commits intodevelopfrom
project/dref-missing-translation
Feb 26, 2026
Merged

DREF: Add Static translation and feedbacks#2668
szabozoltan69 merged 3 commits intodevelopfrom
project/dref-missing-translation

Conversation

@susilnem
Copy link
Member

Changes

  • generate Static string translation and compilemessages
  • register new fields for the translation

Commands to run:

from lang.tasks import ModelTranslator
from dref.models import *

models_to_translate = [
    SourceInformation,
    PlannedIntervention,
    RiskSecurity,
    IdentifiedNeed,
    PlannedInterventionIndicators,
]

# Display character counts for the specified models
ModelTranslator.show_characters_counts(only_models=models_to_translate)

# Run the translation process for the specified models
ModelTranslator().run(only_models=models_to_translate)

Checklist

Things that should succeed before merging.

  • Updated/ran unit tests
  • Updated CHANGELOG.md

Release

If there is a version update, make sure to tag the repository with the latest version.

@susilnem susilnem force-pushed the project/dref-missing-translation branch from 2fe55ae to fc99de2 Compare February 25, 2026 09:29
- on model plannedintervention, IdentifiedNeed
@susilnem
Copy link
Member Author

Hey @szabozoltan69, Can you please review, merge, and deploy this to staging?

@susilnem susilnem marked this pull request as ready for review February 26, 2026 06:12
@szabozoltan69 szabozoltan69 merged commit 32dffbe into develop Feb 26, 2026
7 checks passed
@szabozoltan69 szabozoltan69 deleted the project/dref-missing-translation branch February 26, 2026 06:14
@szabozoltan69
Copy link
Contributor

Deployed to Staging.
The suggested commands are run:

In [1]: from lang.tasks import ModelTranslator
   ...: from dref.models import *
   ...: 

In [2]: models_to_translate = [
   ...:     SourceInformation,
   ...:     PlannedIntervention,
   ...:     RiskSecurity,
   ...:     IdentifiedNeed,
   ...:     PlannedInterventionIndicators,
   ...: ]
   ...: 

In [3]: ModelTranslator.show_characters_counts(only_models=models_to_translate)
   ...: 

In [4]: ModelTranslator().run(only_models=models_to_translate)
(still running, for quite long time)

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 this pull request may close these issues.

3 participants