IFRCGo / go-api

MIT License
14 stars 6 forks source link

Add missing translation #2163

Closed k9845 closed 4 months ago

k9845 commented 4 months ago

Changes

Run the following command

from lang.tasks import ModelTranslator
from per.models import *
# Define a list of models to translate
models_to_translate = [
   FormPrioritizationComponent,
   PerWorkPlanComponent,
   CustomPerWorkPlanComponent,
]# 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.

Release

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

szabozoltan69 commented 4 months ago

Please solve conflict in admin.py

szabozoltan69 commented 4 months ago

Please do not remove PerComponentRating from translations.py

szabozoltan69 commented 4 months ago

Merge and deployment done, migrations are ok:

Running migrations:
  Applying per.0118_percomponentrating_title_ar_and_more... OK
  Applying per.0118_customperworkplancomponent_actions_ar_and_more... OK
  Applying per.0119_merge_20240524_0548... OK

Also these were run:

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

models_to_translate = [
   FormPrioritizationComponent,
   PerWorkPlanComponent,
   CustomPerWorkPlanComponent,
   PerComponentRating,
]

ModelTranslator.show_characters_counts(only_models=models_to_translate)
ModelTranslator().run(only_models=models_to_translate)