-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reuse server strings when possible in stats (#3442)
* Reuse server strings when possible in stats We were making people translate stuff twice a lot more than strictly needed, and mwiencek suggested we don't. I'm sure I've missed some reused strings, but this is most of them. To ensure we don't accidentally use l for statistics strings, this explicitly imports l as lMbServer and uses that. We have a test to prevent bare l(), but it doesn't seem to work at the moment since it wasn't triggered by this. * Fix "Checking translation domain in statistics code" test 1. The `!` negation does not actually cause the script to exit (despite `set -e`) if the `git grep` succeeds (finds matches). See [1]: "The shell does not exit if the command that fails is part of the command list immediately following a while or until keyword, part of the test in an if statement, part of any command executed in a && or || list except the command following the final && or ||, any command in a pipeline but the last, or if the command’s return status is being inverted with !." Thus I've replaced the `!` at the beginning of the command with `&& { exit 1; }` at the end. 2. It appears that the tests could hang on the `git grep` command if it produced too many matches due to the results being paged. I've also added the `--no-pager` flag to resolve this. [1] https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html: * Use more standard l_mb_server name This was blocked by eslint but we have exceptions for all others, and looks a lot more readable than lMbServer (and related names) * Add missing `*l*_mb_server` function names to .eslintrc.unfixed.yaml These aren't used yet, but it seems likely they will be in the future, so it shouldn't hurt to add them. * Add providePluginConfig for `*l*_mb_server` functions --------- Co-authored-by: Michael Wiencek <[email protected]>
- Loading branch information
Showing
14 changed files
with
179 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.