Language Change ? Pending

User tests: Successful: Unsuccessful:

Automatically created pull request based on core-translation repository changes

avatar joomla-translation-bot joomla-translation-bot - open - 26 Aug 2021
avatar joomla-translation-bot joomla-translation-bot - change - 26 Aug 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2021
Category Installation Language & Strings
avatar github-actions[bot] github-actions[bot] - change - 27 Aug 2021
Labels Added: Language Change ?
avatar brianteeman
brianteeman - comment - 27 Aug 2021

@HLeithner I thought you had made it so that the copyright in the xml did not get changed?

avatar HLeithner
HLeithner - comment - 27 Aug 2021

@conconnl can you have a look because the crowdin config seems correct

avatar conconnl
conconnl - comment - 27 Aug 2021

That is what happens when people don't want to use the System which manages this automatically. I already provided a corrected file too the proofreader, which they are processing. After the retrieval process picked up the new version from their GitHub, it should be corrected.

We can't guarantee it stays correct, unless we deny proofreaders from using GitHub for their work. At this moment the only method is communicate and ask for correction.

avatar conconnl
conconnl - comment - 27 Aug 2021

Maybe read the previous message.
Then you would see that the corrections are already communicated and being processed by the proofreader.
https://github.com/joomlajp/Joomla-in-Japanese/blob/4.x/installation/language/ja-JP/langmetadata.xml

avatar infograf768
infograf768 - comment - 27 Aug 2021

We still have the date as <creationDate>August 2021</creationDate> which is also an error in en-GB.
The English date format, i.e. 2021-08-24 for example, should be used for all languages xml including admin, site and APi. This has been decided some years ago.

Once more, handling this totally automatically is a mistake. Files should be checked by someone responsible at Production level before being included in the CMS.

avatar conconnl
conconnl - comment - 27 Aug 2021

We still have the date as <creationDate>August 2021</creationDate> which is also an error in en-GB.
The English date format, i.e. 2021-08-24 for example, should be used for all languages xml including admin, site and APi. This has been decided some years ago.

Once more, handling this totally automatically is a mistake. Files should be checked by someone responsible at Production level before being included in the CMS.

If that is wrong, fix the Core:
https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/manifests/packages/pkg_en-GB.xml

They are checked, how else would the proofreader receive the corrections they processed.

avatar HLeithner
HLeithner - comment - 27 Aug 2021

That is what happens when people don't want to use the System which manages this automatically. I already provided a corrected file too the proofreader, which they are processing. After the retrieval process picked up the new version from their GitHub, it should be corrected.

We can't guarantee it stays correct, unless we deny proofreaders from using GitHub for their work. At this moment the only method is communicate and ask for correction.

ah sorry I thought the bot pulled it from crowdin in, ok then it's clear why it's not limited, thanks

avatar dgrammatiko
dgrammatiko - comment - 11 Sep 2021

This PR is still incomplete, it is missing these files (that need to be updated with the new strings):

Basically it needs 3 more steps in the actions:

  • npm ci
  • node .\build\build.js --build-pages
  • add back the updated files:
    - uses: stefanzweifel/git-auto-commit-action@v4.11.0
      with:
        commit_message: Adding back the json created...
        branch: ${{ github.head_ref }}
avatar joomla-cms-bot joomla-cms-bot - change - 11 Sep 2021
Category Installation Language & Strings Repository Installation Language & Strings
avatar dgrammatiko
dgrammatiko - comment - 11 Sep 2021

@dgrammatiko what did I wrong?

It's not your fault. The tools require that the composer install should be executed before running the npm ci. Basically I should have spotted that, so it's my fault. Give me some time...

avatar dgrammatiko
dgrammatiko - comment - 11 Sep 2021

@HLeithner apply the following changes to https://github.com/joomla/joomla-cms/blob/4.0-dev/build/build-modules-js/init/cleanup-media.es6.js:

const {
  stat, mkdir, copy, remove,
} = require('fs-extra');
const { join } = require('path');

const RootPath = process.cwd();

/**
 * Method that will erase the media/vendor folder
 * and populate the debugbar assets
 *
 * @returns {Promise}
 */
module.exports.cleanVendors = async (skip = true) => {
  // eslint-disable-next-line no-console
  console.log('Cleanup the Vendor ');

  try {
    const mediaFolder = await stat(join(RootPath, 'libraries/vendor/maximebf/debugbar/src/DebugBar/Resources'));
    await mediaFolder.isDirectory();
  } catch (e) {
    // eslint-disable-next-line no-console
    console.error('You need to run `npm install` AFTER the command `composer install`!!!. The debug plugin HASN\'T installed all its front end assets');
    return;
  }

  // Recreate the media folder
  await mkdir(join(RootPath, 'media/vendor/debugbar'), { recursive: true, mode: 0o755 });

  // Copy some assets from a PHP package
  await copy(join(RootPath, 'libraries/vendor/maximebf/debugbar/src/DebugBar/Resources'), join(RootPath, 'media/vendor/debugbar'), { preserveTimestamps: true });
  await remove(join(RootPath, 'media/vendor/debugbar/vendor/font-awesome'));
  await remove(join(RootPath, 'media/vendor/debugbar/vendor/jquery'));
};
avatar HLeithner
HLeithner - comment - 11 Sep 2021

Have to be done against the main cms repository

avatar dgrammatiko
dgrammatiko - comment - 11 Sep 2021
avatar dgrammatiko
dgrammatiko - comment - 11 Sep 2021

@HLeithner So I tweaked the file a bit more because the hard failing on composer install is kinda required or the debug will be totally broken. So the #35531 adds a check for a system variable and the action should be now TRANSLATION_BOT=YES npm ci.

Also the node .\build\build.js --build-pages is redundant, it already executed with the npm ci

avatar dgrammatiko
dgrammatiko - comment - 11 Sep 2021

@HLeithner one more change

from

      - name: Update static error pages
        run: |
          npm install
          SKIP_COMPOSER_CHECK=yes npm ci

to

      - name: Update static error pages
        run: |
          SKIP_COMPOSER_CHECK=yes npm ci
avatar wilsonge wilsonge - close - 11 Sep 2021
avatar wilsonge wilsonge - merge - 11 Sep 2021
avatar wilsonge wilsonge - change - 11 Sep 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-09-11 22:21:58
Closed_By wilsonge

Add a Comment

Login with GitHub to post a comment