Skip to content

Commit 9541936

Browse files
committed
Update documentation and change translation cache expiry to expireNever.
Add source language select on language translator pages to allow translating to a language where the source language differs from the default language, Update PHP files to follow PSR-12 fomratting standards, consolidate namespace declarations/usage. Additional namespace consolidation and cleanup, Additional features, code improvement, and bugfixes. Version bump, update release notes
1 parent bb70d4e commit 9541936

File tree

63 files changed

+5166
-4683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+5166
-4683
lines changed

.editorconfig

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
root = true
22

3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
37
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[**.md]
12+
trim_trailing_whitespace = false
13+
insert_final_newline = false
14+
15+
[**.{html,yml,yaml,js,json,css,scss,svg,md}]
416
indent_size = 2
5-
max_line_length = 100

CHANGELOG.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
# Fluency for ProcessWire Changelog
22

3-
### 2.0.0 2024-08-10
3+
## 2.1.0 2025-03-10
4+
5+
### New features, Bugfixes, Documentation, Code Improvement, Recommended for all users
6+
7+
- Translation cache now caches translations permanently until cleared on the module config page when
8+
translation caching is enabled.
9+
- Some Fluency methods are now hookable. Refer to README for documentation and examples. Credit to
10+
@harikt for inspiring this feature.
11+
- Globally excluded strings can now be entered either one per line or all on one line separated by
12+
a || (double pipe). Credit to @BernhardBaumrock for the feature suggestion
13+
- Translating static strings using the ProcessWire translator now offers the ability to specify the
14+
language code to be used for the source language
15+
- Fix issue where strings configured to be excluded from translations on the module config page were
16+
being translated. Credit to @BernhardBaumrock for finding and reporting
17+
- Correct issue where custom language code field that may optionally be added to ProcessWire
18+
language pages was inconsistent and incorrectly documented.
19+
20+
Housekeeping
21+
22+
- Update PHP code formatting to follow [PSR-12 standards](https://www.php-fig.org/psr/psr-12/)
23+
- Update .editorconfig with additional file definitions
24+
- Remove extraneous namespace registrations with ProcessWire
25+
- Improve docblocks
26+
- Remove some annoying code styles
27+
- Remove file `import` statements where namespace `use` should be in source files
28+
- Simplify internal class/filenames
29+
- Update caniuse package
30+
- Update `href` in `Fluency.info.php` to reflect current forums post URL
31+
32+
## 2.0.0 2024-08-10
433

534
NOTE: If upgrading from 1.0.8 or earlier it is recommended that you fully uninstall the module
635
and then reinstall the module. Issues may be experienced if upgrading directly.
@@ -382,4 +411,4 @@ error. Also significant updates to the UI. All users should update.
382411

383412
### 2020-11-01 Initial release
384413

385-
- Alpha release
414+
- Alpha release

Fluency.info.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
namespace ProcessWire;
66

77
$info = [
8-
'title' => 'Fluency',
9-
'version' => '200',
10-
'href' => 'https://processwire.com/talk/topic/24567-fluency-integrated-deepl-powered-content-translation',
11-
'icon' => 'language',
12-
'summary' => 'The complete translation enhancement suite for ProcessWire.',
13-
'autoload' => true,
14-
'singular' => true,
15-
'requires' => [
16-
'ProcessLanguage',
17-
'LanguageSupport',
18-
'LanguageTabs',
19-
'ProcessWire>=300',
20-
'PHP>=8.1',
21-
],
22-
'permission' => 'fluency-translate',
23-
'permissions' => [
24-
'fluency-translate' => __('Use Fluency translation')
25-
],
26-
'page' => [
27-
'name' => 'fluency',
28-
'title' => __('Translation')
29-
],
8+
'title' => 'Fluency',
9+
'version' => '210',
10+
'href' => 'https://processwire.com/talk/topic/24567-fluency-the-complete-translation-enhancement-suite-for-processwire/',
11+
'icon' => 'language',
12+
'summary' => 'The complete translation enhancement suite for ProcessWire.',
13+
'autoload' => true,
14+
'singular' => true,
15+
'requires' => [
16+
'ProcessLanguage',
17+
'LanguageSupport',
18+
'LanguageTabs',
19+
'ProcessWire>=300',
20+
'PHP>=8.1',
21+
],
22+
'permission' => 'fluency-translate',
23+
'permissions' => [
24+
'fluency-translate' => __('Use Fluency translation')
25+
],
26+
'page' => [
27+
'name' => 'fluency',
28+
'title' => __('Translation')
29+
],
3030
];

0 commit comments

Comments
 (0)