**System Information**
Operating system: Darwin-19.3.0-x86_64-i386-64bit 64 Bits
**Blender Version**
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: `rBf1aa4d18d49d`
**Short description of error**
Ran the "make update_po" in 'blender_docs' directory on local machine and encountered several problems:
{F8370449}
these errors resides in the file
blender_docs/tools_maintenance/update_po.sh
1. The error in ' -printf '%h\n'. This option in 'find' command is NOT available on Darwin. There are two occurrences in this file.
2. 'export LANG="en_US.UTF8' should be 'export LANG="en_US.UTF-8"', ie. with a hyphen between 'F-8'. The 'locale -a' will list out list of all available language codes.
3. The block of code:
for SVNDIR in "$SVN_DIRS_ALL"; do
svn cleanup "$SVNDIR"
svn up "$SVNDIR"
done
unset SVNDIR
is causing the error message
svn: Skipping argument: E200025: 'locale//vi/.svn' ends in a reserved name
Note there are two '//' in the path. This is caused by the extra forward slash in the 'find locale/..' Remove the slash so the command is only 'find locale ...' resulted to this line:
svn: Skipping argument: E200025: 'locale/vi/.svn' ends in a reserved name
Commented the above block out (svn cleanup and svn up) and the error message is GONE. If you go to the 'locale/<lang>' and do the 'svn up .' manually, there are no errors encountered.
Last, and the most severed is the creation of 'locale/locale/<lang_code>' directory and files. This is wrong. (locale) is repeated twice.
{F8370470}
**Recreating problem**
Run:
svn checkout https://svn.blender.org/svnroot/bf-manual/trunk/blender_docs
to get the documentation code down the local machine:
run:
cd blender_docs
sudo pip3 install -r requirements.txt
then install one language, say vi:
svn checkout https://svn.blender.org/svnroot/bf-manual-translations/trunk/blender_docs/locale/vi locale/vi
Now run the command:
make update_po
Note: The code appeared running OK on Linux Mint, about 1-2 months ago. Presently I do not have access to a Linux machine in order to compare results.
The funny thing is if you just run this from the command line, assuming the environment variable BLENDER_MAN_EN is pointing to your 'blender_docs' directory:
cd $BLENDER_MAN_EN; rm -fr build/locale; make gettext; sphinx-intl --config=manual/conf.py update --pot-dir=build/locale --language="vi"; python3 tools_rst/rst_check_locale.py
and there are no errors