Save changed file localy and enable bench update

hi every body
i made some changes to the file :/apps/erpnext/erpnext/translations/ar.csv
because there was some errors in the original file translation .
now when i try bench update it show me:
Cannot proceed with update: You have local changes in app “erpnext” that are not committed.

Here are your choices:

  1. Merge the erpnext app manually with “git pull” / “git pull --rebase” and fix conflicts.
  2. Temporarily remove your changes with “git stash” or discard them completely
    with “bench update --reset” or for individual repositries “git reset --hard”
  3. If your changes are helpful for others, send in a pull request via GitHub and
    wait for them to be merged in the core.
    now what i have to do to keep the changed file at least for my site?

dear justmejust,

translations suppose to done via Customization>Custom Translations>New
you have to bench update --reset and do your translations via build in tool

note: don’t forget to backup your CSV file for not lose your translated values. it gonna be reverted original one when you done bench update --reset

Git stash
Bench update
Git stash pop

Refere to this link for more details.

1 Like