diff --git a/.github/actions/flutter-common/action.yml b/.github/actions/flutter-common/action.yml index f3e4a73f9..be5eef4b8 100644 --- a/.github/actions/flutter-common/action.yml +++ b/.github/actions/flutter-common/action.yml @@ -9,7 +9,7 @@ runs: uses: subosito/flutter-action@v2 with: channel: stable - flutter-version: 3.35.2 + flutter-version: 3.35.7 cache: true - name: Install Flutter dependencies diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index f07a7066e..e9fb1ec18 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -36,7 +36,7 @@ jobs: - name: Build APK run: flutter build apk --release - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-apk path: build/app/outputs/flutter-apk/app-release.apk @@ -67,7 +67,7 @@ jobs: - name: Build AAB run: flutter build appbundle --release - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-aab path: build/app/outputs/bundle/release/app-release.aab \ No newline at end of file diff --git a/.github/workflows/build-apple.yml b/.github/workflows/build-apple.yml index 4faa73137..7064efe68 100644 --- a/.github/workflows/build-apple.yml +++ b/.github/workflows/build-apple.yml @@ -31,7 +31,7 @@ jobs: cd build/ios/iphoneos zip -r Runner.app.zip Runner.app - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-ios path: build/ios/iphoneos/Runner.app.zip @@ -61,7 +61,7 @@ jobs: cd build/ios/archive zip -r Runner.xcarchive.zip Runner.xcarchive - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-ipa path: build/ios/archive/Runner.xcarchive.zip @@ -84,7 +84,7 @@ jobs: cd build/macos/Build/Products/Release zip -r wger.app.zip wger.app - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-macos path: build/macos/Build/Products/Release/wger.app.zip \ No newline at end of file diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index a3d3e4616..30e7a061a 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -39,7 +39,7 @@ jobs: sudo apt install -y pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev --no-install-recommends flutter build linux --release tar -zcvf linux-${{ matrix.platform }}.tar.gz build/linux/${{ matrix.platform }}/release/bundle - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-linux path: | @@ -67,14 +67,19 @@ jobs: python bump-wger-version.py ${{ inputs.ref }} ../flatpak-flutter/flatpak-flutter.py --app-module wger flatpak-flutter.json - - name: Push updated config to flathub repository - uses: cpina/github-action-push-to-another-repository@main - env: - SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} - with: - destination-github-username: wger-project - destination-repository-name: de.wger.flutter - user-email: github-actions@github.com - target-branch: release-${{ inputs.ref }} - create-target-branch-if-needed: true - commit-message: Update to ${{ inputs.ref }} + # TODO: this is currently commented out because it seems the action used below + # doesn't work anymore. This is probably not all that surprising as it + # isn't being developed anymore. This should be update so that the process + # works automatically again, till then this can be done manually. + + #- name: Push updated config to flathub repository + # uses: cpina/github-action-push-to-another-repository@main + # env: + # SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} + # with: + # destination-github-username: wger-project + # destination-repository-name: de.wger.flutter + # user-email: github-actions@github.com + # target-branch: release-${{ inputs.ref }} + # create-target-branch-if-needed: true + # commit-message: Update to ${{ inputs.ref }} diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index adc64f809..2189d4a84 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -25,7 +25,7 @@ jobs: - name: Build .exe run: flutter build windows --release - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v5 with: name: builds-windows path: build\windows\x64\runner\Release\wger.exe \ No newline at end of file diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 951ab4db2..55efba777 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -22,7 +22,7 @@ jobs: uses: ./.github/actions/flutter-common - name: Setup uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@v7 - name: Validate version run: | diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 1b5b5f9a1..f8f59f678 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -66,7 +66,7 @@ jobs: ref: ${{ github.event.inputs.version }} - name: Download builds - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v6 with: path: /tmp/ @@ -114,7 +114,7 @@ jobs: # uses: ./.github/actions/flutter-common # # - name: Download builds - # uses: actions/download-artifact@v5 + # uses: actions/download-artifact@v6 # with: # path: /tmp/ # @@ -133,7 +133,7 @@ jobs: steps: - name: Download builds - uses: actions/download-artifact@v5 + uses: actions/download-artifact@v6 - name: Make Github release uses: softprops/action-gh-release@v2 diff --git a/.gitignore b/.gitignore index edc2c5c03..b3dc06861 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,8 @@ .pub-cache/ .pub/ /build/ +/**/build/ +/android/app/.cxx **/failures/*.png @@ -62,3 +64,4 @@ ios/fastlane/Preview.html ios/fastlane/output ios/Runner.ipa ios/Runner.app.dSYM.zip + diff --git a/AUTHORS.md b/AUTHORS.md index 43571c487..e478e970a 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -2,6 +2,10 @@ Thank you all for contributing to the project, you are true heroes! 🫶 +*Generated on 2025-11-10* + +--- + ## Contributors - thisisyoussef - [https://github.com/thisisyoussef](https://github.com/thisisyoussef) @@ -89,7 +93,7 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Thilina Herath - [https://github.com/thilinatnt](https://github.com/thilinatnt) - ToldYouThat - Yair Chen - [https://github.com/chenyair](https://github.com/chenyair) -- henok3878 - [https://github.com/henok3878](https://github.com/henok3878) +- henok3878 - [https://github.com/h3nock](https://github.com/h3nock) - Patrick Witter - [https://github.com/patrickwitter](https://github.com/patrickwitter) - ton-An - [https://github.com/ton-An](https://github.com/ton-An) - Prakash Shekhar - [https://github.com/prakash-shekhar](https://github.com/prakash-shekhar) @@ -100,40 +104,50 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Jannik Norden - Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) - Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) -- Dylan Aird - [https://github.com/Dolaned](https://github.com/Dolaned) ## Translators +### Amharic + +- henok3878 - [https://github.com/h3nock](https://github.com/h3nock) + +### Arabic + +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Hanaa - [https://github.com/hn-n](https://github.com/hn-n) +- Ahmed zein - [https://github.com/Ahmed-Zein](https://github.com/Ahmed-Zein) + +### Catalan + +- Zixu Sun - [https://github.com/ziixu](https://github.com/ziixu) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) + +### Chinese (Simplified Han script) + +- Herb Huang + +### Chinese (Simplified) + +- 纪颖志 - [https://github.com/jiyingzhi](https://github.com/jiyingzhi) +- Yi-Han Hsiung - [https://github.com/AaronHsiung](https://github.com/AaronHsiung) +- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) +- Eddie Tang - [https://github.com/EDED2314](https://github.com/EDED2314) +- Jing - [https://github.com/jingcheng16](https://github.com/jingcheng16) +- sr-c - [https://github.com/sr-c](https://github.com/sr-c) +- tony - [https://github.com/tonyxxliu](https://github.com/tonyxxliu) +- yiter + ### Chinese (Traditional Han script) - Peter Dave Hello - [https://github.com/PeterDaveHello](https://github.com/PeterDaveHello) -### Polish +### Chinese (Traditional) -- Karol Solecki - [https://github.com/karolsol](https://github.com/karolsol) -- Piotr Strebski - [https://github.com/strebski](https://github.com/strebski) -- Dawid Panyło -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Marcin Schoenknecht -- Patryk - [https://github.com/byakurau](https://github.com/byakurau) -- Michał Homza - [https://github.com/HagiaHaya](https://github.com/HagiaHaya) -- Jacob - [https://github.com/devzom](https://github.com/devzom) - -### Serbian - -- Mladen Trišić - [https://github.com/mtrisic](https://github.com/mtrisic) - -### Dutch - -- Joey Haalboom - [https://github.com/JoeyHaalboom](https://github.com/JoeyHaalboom) - -### Russian - -- Алексей Курышко - [https://github.com/alexkuryshko](https://github.com/alexkuryshko) -- lightningcpu - [https://github.com/lightningcpu](https://github.com/lightningcpu) -- Кирилл Александрович Злобин - [https://github.com/gungstarbeiter](https://github.com/gungstarbeiter) -- Ivan Katkov - [https://github.com/Porphyrion](https://github.com/Porphyrion) -- Nikita Epifanov +- hugoalh +- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) +- Chung-Wei Chung - [https://github.com/webb790709](https://github.com/webb790709) +- HY Cheng ### Croatian @@ -141,18 +155,78 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - SMilohanic - [https://github.com/sandimilohanic](https://github.com/sandimilohanic) -### Portuguese +### Czech -- Edson Wolf - [https://github.com/edsonblwolf](https://github.com/edsonblwolf) +- Fjuro - [https://github.com/Fjuro](https://github.com/Fjuro) +- Fjuro +- CaptainDolphy - [https://github.com/CaptainDolphy](https://github.com/CaptainDolphy) +- Roman Kalivoda - [https://github.com/RKCZ](https://github.com/RKCZ) + +### Dutch + +- Joey Haalboom - [https://github.com/JoeyHaalboom](https://github.com/JoeyHaalboom) + +### English + +- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) +- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) + +### French + +- William - [https://github.com/WilliamR312](https://github.com/WilliamR312) +- florent4014 - [https://github.com/florent4014](https://github.com/florent4014) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Wilton Rodrigues -- Guilherme Salomão - [https://github.com/salomaoparkour](https://github.com/salomaoparkour) -- Bruno de Moura - [https://github.com/bruunomooura](https://github.com/bruunomooura) -- Dalton Scavassa -- Stefan Taiguara - [https://github.com/Teitei011](https://github.com/Teitei011) -- Eduardo Menges Mattje - [https://github.com/EduMenges](https://github.com/EduMenges) -- Edu Cavalheiro - [https://github.com/EduCavalheiro](https://github.com/EduCavalheiro) -- João Goulart - [https://github.com/usehalter](https://github.com/usehalter) +- Xav Basco +- David Olewski - [https://github.com/Arigowin](https://github.com/Arigowin) +- yoyomax80400 - [https://github.com/yoyomax80400](https://github.com/yoyomax80400) +- loued - [https://github.com/Loued](https://github.com/Loued) +- Célian +- MrSniikyz - [https://github.com/BabyGeek](https://github.com/BabyGeek) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- J. Lavoie +- Antoine Vibien - [https://github.com/r1llettes](https://github.com/r1llettes) +- Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) + +### German + +- kvnrmnn - [https://github.com/rmnn92](https://github.com/rmnn92) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- Victor Jouhoff - [https://github.com/jouhoffv](https://github.com/jouhoffv) +- m4skedbyte +- Axel Steinbrecher +- Christoph Suesser - [https://github.com/TheFitzZZ](https://github.com/TheFitzZZ) +- Luis Lüscher - [https://github.com/lslschr](https://github.com/lslschr) +- mondstern +- J. Lavoie +- Marvin M - [https://github.com/M123-dev](https://github.com/M123-dev) +- Lydia +- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) + +### Greek + +- Dimitrys Meliates +- Antonis-geo - [https://github.com/Antonis-geo](https://github.com/Antonis-geo) + +### Hebrew + +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- n,rdo +- Tomer Ben Rachel - [https://github.com/TomerPacific](https://github.com/TomerPacific) + +### Hindi + +- pavan arun bagwe - [https://github.com/pavanb0](https://github.com/pavanb0) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Debayan Sutradhar - [https://github.com/rnayabed](https://github.com/rnayabed) + +### Indonesian + +- aryakdaniswara - [https://github.com/aryakdaniswara](https://github.com/aryakdaniswara) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Debi Maulana Ahsan Halla +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) ### Italian @@ -171,32 +245,41 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - mondstern - Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) -### French +### Japanese -- William - [https://github.com/WilliamR312](https://github.com/WilliamR312) -- florent4014 - [https://github.com/florent4014](https://github.com/florent4014) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Xav Basco -- David Olewski - [https://github.com/Arigowin](https://github.com/Arigowin) -- yoyomax80400 - [https://github.com/yoyomax80400](https://github.com/yoyomax80400) -- loued - [https://github.com/Loued](https://github.com/Loued) -- Célian -- MrSniikyz - [https://github.com/BabyGeek](https://github.com/BabyGeek) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- J. Lavoie -- Antoine Vibien - [https://github.com/r1llettes](https://github.com/r1llettes) -- Stefano Rossi - [https://github.com/stefanorossiti](https://github.com/stefanorossiti) +- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) +- sasukeiscool - [https://github.com/sasukeiscool](https://github.com/sasukeiscool) +- yiter -### Ukrainian +### Norwegian Bokmål -- Максим Горпиніч - [https://github.com/Maksim2005UA](https://github.com/Maksim2005UA) - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Максим Горпиніч +- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) + +### Polish + +- Karol Solecki - [https://github.com/karolsol](https://github.com/karolsol) +- Piotr Strebski - [https://github.com/strebski](https://github.com/strebski) +- Dawid Panyło - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Dan - [https://github.com/Kefir2105](https://github.com/Kefir2105) -- Dan -- Tymofii Lytvynenko -- Artem - [https://github.com/defaultpage](https://github.com/defaultpage) +- Marcin Schoenknecht +- Patryk - [https://github.com/byakurau](https://github.com/byakurau) +- Michał Homza - [https://github.com/HagiaHaya](https://github.com/HagiaHaya) +- Jacob - [https://github.com/devzom](https://github.com/devzom) + +### Portuguese + +- Edson Wolf - [https://github.com/edsonblwolf](https://github.com/edsonblwolf) +- Anonymous - [https://github.com/weblate](https://github.com/weblate) +- Wilton Rodrigues +- Guilherme Salomão - [https://github.com/salomaoparkour](https://github.com/salomaoparkour) +- Bruno de Moura - [https://github.com/bruunomooura](https://github.com/bruunomooura) +- Dalton Scavassa +- Stefan Taiguara - [https://github.com/Teitei011](https://github.com/Teitei011) +- Eduardo Menges Mattje - [https://github.com/EduMenges](https://github.com/EduMenges) +- Edu Cavalheiro - [https://github.com/EduCavalheiro](https://github.com/EduCavalheiro) +- João Goulart - [https://github.com/usehalter](https://github.com/usehalter) ### Portuguese (Brazil) @@ -210,99 +293,26 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Luigi Henrick Feitoza Silva - [https://github.com/luigihenrick](https://github.com/luigihenrick) - João Hortêncio Moraes - [https://github.com/joaohortencio](https://github.com/joaohortencio) -### Tamil - -- தமிழ்நேரம் - [https://github.com/TamilNeram](https://github.com/TamilNeram) - -### Chinese (Simplified Han script) - -- Herb Huang - -### Hindi - -- pavan arun bagwe - [https://github.com/pavanb0](https://github.com/pavanb0) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Debayan Sutradhar - [https://github.com/rnayabed](https://github.com/rnayabed) - -### Turkish - -- Oğuz Ersen - [https://github.com/oersen](https://github.com/oersen) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Cem Avcı - [https://github.com/cem256](https://github.com/cem256) -- Oğuz Ersen -- Cenk Cidecio - [https://github.com/ccidecio](https://github.com/ccidecio) -- ToldYouThat - -### German - -- kvnrmnn - [https://github.com/rmnn92](https://github.com/rmnn92) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Victor Jouhoff - [https://github.com/jouhoffv](https://github.com/jouhoffv) -- m4skedbyte -- Axel Steinbrecher -- Christoph Suesser - [https://github.com/TheFitzZZ](https://github.com/TheFitzZZ) -- Luis Lüscher - [https://github.com/lslschr](https://github.com/lslschr) -- mondstern -- J. Lavoie -- Marvin M - [https://github.com/M123-dev](https://github.com/M123-dev) -- Lydia -- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) - -### Indonesian - -- aryakdaniswara - [https://github.com/aryakdaniswara](https://github.com/aryakdaniswara) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Debi Maulana Ahsan Halla -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - -### Catalan - -- Zixu Sun - [https://github.com/ziixu](https://github.com/ziixu) -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) - -### Chinese (Simplified) - -- 纪颖志 - [https://github.com/jiyingzhi](https://github.com/jiyingzhi) -- Yi-Han Hsiung - [https://github.com/AaronHsiung](https://github.com/AaronHsiung) -- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) -- Eddie Tang - [https://github.com/EDED2314](https://github.com/EDED2314) -- Jing - [https://github.com/jingcheng16](https://github.com/jingcheng16) -- sr-c - [https://github.com/sr-c](https://github.com/sr-c) -- tony - [https://github.com/tonyxxliu](https://github.com/tonyxxliu) -- yiter - -### Greek - -- Dimitrys Meliates -- Antonis-geo - [https://github.com/Antonis-geo](https://github.com/Antonis-geo) - -### Czech - -- Fjuro - [https://github.com/Fjuro](https://github.com/Fjuro) -- Fjuro -- CaptainDolphy - [https://github.com/CaptainDolphy](https://github.com/CaptainDolphy) -- Roman Kalivoda - [https://github.com/RKCZ](https://github.com/RKCZ) - -### Arabic +### Portuguese (Portugal) - Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Hanaa - [https://github.com/hn-n](https://github.com/hn-n) -- Ahmed zein - [https://github.com/Ahmed-Zein](https://github.com/Ahmed-Zein) -### Hebrew +### Romanian -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- n,rdo -- Tomer Ben Rachel - [https://github.com/TomerPacific](https://github.com/TomerPacific) +- Bogdan Bujor - [https://github.com/qSharpy](https://github.com/qSharpy) +- dimii27 - [https://github.com/dimii27](https://github.com/dimii27) -### Japanese +### Russian -- Anonymous - [https://github.com/weblate](https://github.com/weblate) -- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) -- sasukeiscool - [https://github.com/sasukeiscool](https://github.com/sasukeiscool) -- yiter +- Алексей Курышко - [https://github.com/alexkuryshko](https://github.com/alexkuryshko) +- lightningcpu - [https://github.com/lightningcpu](https://github.com/lightningcpu) +- Кирилл Александрович Злобин - [https://github.com/gungstarbeiter](https://github.com/gungstarbeiter) +- Ivan Katkov - [https://github.com/Porphyrion](https://github.com/Porphyrion) +- Nikita Epifanov + +### Serbian + +- Mladen Trišić - [https://github.com/mtrisic](https://github.com/mtrisic) ### Spanish @@ -317,33 +327,26 @@ Thank you all for contributing to the project, you are true heroes! 🫶 - Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - martingetzel - [https://github.com/martingetzel](https://github.com/martingetzel) -### Chinese (Traditional) +### Tamil -- hugoalh -- Tsz Hong CHAN - [https://github.com/tomyan112](https://github.com/tomyan112) -- Chung-Wei Chung - [https://github.com/webb790709](https://github.com/webb790709) -- HY Cheng +- தமிழ்நேரம் - [https://github.com/TamilNeram](https://github.com/TamilNeram) -### Portuguese (Portugal) +### Turkish +- Oğuz Ersen - [https://github.com/oersen](https://github.com/oersen) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- Cem Avcı - [https://github.com/cem256](https://github.com/cem256) +- Oğuz Ersen +- Cenk Cidecio - [https://github.com/ccidecio](https://github.com/ccidecio) +- ToldYouThat + +### Ukrainian + +- Максим Горпиніч - [https://github.com/Maksim2005UA](https://github.com/Maksim2005UA) +- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) +- Максим Горпиніч - Anonymous - [https://github.com/weblate](https://github.com/weblate) - -### Romanian - -- Bogdan Bujor - [https://github.com/qSharpy](https://github.com/qSharpy) -- dimii27 - [https://github.com/dimii27](https://github.com/dimii27) - -### English - -- guillem - [https://github.com/gbuendia](https://github.com/gbuendia) -- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) - -### Norwegian Bokmål - -- Roland Geider - [https://github.com/rolandgeider](https://github.com/rolandgeider) -- Allan Nordhøy - [https://github.com/comradekingu](https://github.com/comradekingu) - -### Amharic - -- henok3878 - [https://github.com/henok3878](https://github.com/henok3878) +- Dan - [https://github.com/Kefir2105](https://github.com/Kefir2105) +- Dan +- Tymofii Lytvynenko +- Artem - [https://github.com/defaultpage](https://github.com/defaultpage) diff --git a/Gemfile.lock b/Gemfile.lock index a12426e74..d948bb519 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,8 +11,8 @@ GEM artifactory (3.0.17) atomos (0.1.3) aws-eventstream (1.4.0) - aws-partitions (1.1163.0) - aws-sdk-core (3.232.0) + aws-partitions (1.1181.0) + aws-sdk-core (3.236.0) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.992.0) aws-sigv4 (~> 1.9) @@ -20,18 +20,18 @@ GEM bigdecimal jmespath (~> 1, >= 1.6.1) logger - aws-sdk-kms (1.112.0) - aws-sdk-core (~> 3, >= 3.231.0) + aws-sdk-kms (1.117.0) + aws-sdk-core (~> 3, >= 3.234.0) aws-sigv4 (~> 1.5) - aws-sdk-s3 (1.199.0) - aws-sdk-core (~> 3, >= 3.231.0) + aws-sdk-s3 (1.203.0) + aws-sdk-core (~> 3, >= 3.234.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.5) aws-sigv4 (1.12.1) aws-eventstream (~> 1, >= 1.0.2) babosa (1.0.4) base64 (0.3.0) - bigdecimal (3.2.3) + bigdecimal (3.3.1) claide (1.1.0) colored (1.2) colored2 (3.1.2) @@ -161,7 +161,7 @@ GEM httpclient (2.9.0) mutex_m jmespath (1.6.2) - json (2.15.0) + json (2.16.0) jwt (2.10.2) base64 logger (1.7.0) @@ -173,11 +173,11 @@ GEM nanaimo (0.4.0) naturally (2.3.0) nkf (0.2.0) - optparse (0.6.0) + optparse (0.8.0) os (1.1.4) plist (3.7.2) public_suffix (6.0.2) - rake (13.3.0) + rake (13.3.1) representable (3.2.0) declarative (< 0.1.0) trailblazer-option (>= 0.1.1, < 0.2.0) @@ -225,6 +225,7 @@ PLATFORMS arm64-darwin-22 arm64-darwin-23 arm64-darwin-24 + arm64-darwin-25 x86_64-linux DEPENDENCIES @@ -235,4 +236,4 @@ DEPENDENCIES mutex_m BUNDLED WITH - 2.6.9 + 2.7.2 diff --git a/analysis_options.yaml b/analysis_options.yaml index 68c186a14..b7abc7073 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -21,6 +21,7 @@ analyzer: formatter: page_width: 100 + trailing_commas: preserve linter: rules: diff --git a/fastlane/metadata/android/fa-IR/full_description.txt b/fastlane/metadata/android/fa-IR/full_description.txt new file mode 100644 index 000000000..06ac653fe --- /dev/null +++ b/fastlane/metadata/android/fa-IR/full_description.txt @@ -0,0 +1,57 @@ +از طرف ما علاقمندان به تناسب اندام، به شما علاقمندان دیگر! +سلامتتون رو با برنامه مدیریت ورزش WGER، متحول کنید. + +آیا اپلیکیشن موردعلاقه‌تون رو پیدا کردید و دوست دارید برنامه ورزشی مخصوص به خودتون رو درست کنید؟ +مهم نیست چه جور ورزشکاری هستید، ما همه در یک چیز مشترکیم: عاشق اینیم که پیشرفت و داده‌های سلامتی‌مون رو دنبال کنیم! 3> + +ما شما رو به خاطر اینکه هنوز هم سفر ورزشیتون رو با یک دفترچه کوچک پیش می‌برید قضاوت نمی‌کنیم... +اما خب، سلام به قرن ۲۰ ام! + +ما یک اپلیکیشن شمارشگر و گزارش وضعیت سلامت و تناسب اندام ۱۰۰٪ رایگان برای شما ساخته‌ایم +که با خلاصه شدن در مهم‌ترین قابلیت‌ها، زندگی رو براتون ساده می‌کنه. +شروع کنید، به ورزش ادامه بدید و پیشرفتتون رو جشن بگیرید! + +WGER یک پروژه متن‌باز است و همه‌چیز درباره این چهار مورد است: + +بدن شما + +تمرین‌های شما + +پیشرفت شما + +داده‌های شما + +بدن شما: +دیگه نیازی نیست مواد تشکیل‌دهنده خوراکی موردعلاقه‌تون رو گوگل کنید! +وعده‌های غذایی روزانه‌تون رو از بین بیش از ۷۸,۰۰۰ محصول انتخاب کنید و ارزش غذایی آن‌ها رو ببینید. وعده‌ها رو به برنامه غذایی اضافه کنید و در تقویم، یک نمای کلی از رژیم‌تون داشته باشید. + +تمرین‌های شما: +شما بهتر می‌دونید چه چیزی برای بدنتون مناسبه. +تمرین‌های شخصی خودتون رو از بین ۲۰۰ حرکت متنوع و در حال افزایش بسازید. +بعدش از "حالت باشگاه" استفاده کنید تا شما رو قدم‭ ‬به قدم در طول تمرین راهنمایی کند، در حالی که با یک کلیک وزن‌هایی که زدید رو ثبت می‌کنید. + +پیشرفت شما: +هیچ‌وقت هدف‌هاتون رو فراموش نکنید. +وزن‌تون رو زیر نظر بگیرید و آمار پیشرفت‌تون رو ذخیره کنید. + +داده‌های شما: +WGER دفترچه خاطرات ورزشی شخصی‌شده شماست – اما این شما هستید که صاحب داده‌هایتان هستید. +از REST API استفاده کنید و با داده‌هاتون کارهای فوق‌العاده انجام بدید. + +یک نکته مهم: این اپ رایگان بر اساس بودجه اضافی نیست و از شما کمک مالی نمی‌خواهیم. +بلکه یک پروژه جامعه‌محور است که دائماً در حال رشد است. پس خودتون رو برای قابلیت‌های جدید هیجان‌زده کنید! + +متن‌باز – این یعنی چی؟ +یعنی تمام کد این برنامه و سرورش رایگان است و در دسترس همه قرار دارد: + +می‌خواهید WGER رو روی سرور خودتون برای باشگاه محل اجرا کنید؟ حله! + +یک قابلیت خاص کمه و می‌خواهید خودتون اضافهش کنید؟ از همین امروز شروع کنید! + +می‌خواهید مطمئن بشوید که اطلاعاتی جایی فرستاده نمی‌شه؟ می‌توانید بررسی کنید! + +به جامعه ما بپیوندید! بخشی از علاقه‌مندان به ورزش و متخصصان فناوری از سراسر جهان شوید. +ما دائماً در حال تنظیم و بهینه‌سازی اپلیکیشن متناسب با نیازهایمون هستیم. عاشق مشارکت و نظرات شما هستیم، پس در هر زمانی خوش آمدید که به ما ملحق شوید و آرزوها و ایده‌هاتون رو با ما در میان بگذارید! + +-> کد منبع را در اینجا پیدا کنید: https://github.com/wger-project +-> سوال بپرسید یا فقط سلامی بکنید، سرور دیسکورد ما: https://discord.gg/rPWFv6W diff --git a/fastlane/metadata/android/fa-IR/short_description.txt b/fastlane/metadata/android/fa-IR/short_description.txt new file mode 100644 index 000000000..1f0e2405f --- /dev/null +++ b/fastlane/metadata/android/fa-IR/short_description.txt @@ -0,0 +1 @@ +شمارنده تناسب اندام/ورزش، تغذیه و وزن diff --git a/fastlane/metadata/android/fa-IR/title.txt b/fastlane/metadata/android/fa-IR/title.txt new file mode 100644 index 000000000..d35e40870 --- /dev/null +++ b/fastlane/metadata/android/fa-IR/title.txt @@ -0,0 +1 @@ +wger Workout Manager diff --git a/fastlane/metadata/android/hr/full_description.txt b/fastlane/metadata/android/hr/full_description.txt index 9f3ffff2f..61420ce67 100644 --- a/fastlane/metadata/android/hr/full_description.txt +++ b/fastlane/metadata/android/hr/full_description.txt @@ -1,10 +1,10 @@ Od ljubitelja fitnessa za ljubitelje fitnessa – organiziraj svoje zdravlje s WGER, tvojim upravljačem treninga! -Već si pronašao/la omiljeni program za fitness i voliš stvarati vlastite sportske rutine? Bez obzira na vrstu sportske zvijeri – svi imamo nešto zajedničko: Volimo pratiti naše zdravstvene podatke <3 +Već si pronašao/la omiljeni program za fitness i voliš stvarati vlastite sportske rutine? Bez obzira na vrstu sporta kojim se baviš – svi imamo nešto zajedničko: Volimo pratiti naše zdravstvene podatke <3 Stoga te ne osuđujemo što još uvijek upravljaš svojim fitnessom sa svojim praktičnim malim dnevnikom vježbanja, ali nalazimo se u 2025. godini! -Razvili smo 100 % besplatan program za digitalno praćenje zdravlja i fitnessa, s najrelevantnijim funkcijama koje će ti olakšati život. Započni, nastavi trenirati i proslavi svoj napredak! +Razvili smo 100 % besplatan program za digitalno praćenje zdravlja i fitnessa, s najrelevantnijim funkcijama koje će ti olakšati život. Započni i nastavi trenirati te slavi svoj napredak! wger je projekt otvorenog koda za: * Tvoje tijelo @@ -28,12 +28,12 @@ Napomena: Ovaj besplatni program ne temelji se na dodatnim sredstvima i ne traž #Otvoreni kod – što to znači? -Otvoreni kod znači da je cijeli izvorni kod za ovaj program i poslužitelj s kojim razgovara besplatan i dostupan svima: -* Želiš pokrenuti wger na vlastitom poslužitelju za sebe ili lokalnu teretanu? Izvoli! +Otvoreni kod znači da je cijeli izvorni kod za ovaj program i server s kojim razgovara besplatan i dostupan svima: +* Želiš pokrenuti wger na vlastitom serveru za sebe ili lokalnu teretanu? Izvoli! * Nedostaje ti funkcija i želiš je implementirati? Počni odmah! * Želiš provjeriti da se nigdje ništa ne šalje? Možeš! Pridruži se našoj zajednici i postani dio sportskih entuzijasta i IT geekova iz cijelog svijeta. Nastavljamo raditi na prilagodbi i optimizaciji programa prilagođen našim potrebama. Volimo tvoj doprinos, stoga se slobodno uključi u bilo koje vrijeme i predloži tvoje želje i ideje! -> pronađi izvorni kod na https://github.com/wger-project --> postavljaj pitanja ili se jednostavno predstavi na našem Discord poslužitelju https://discord.gg/rPWFv6W +-> postavljaj pitanja ili se jednostavno predstavi na našem Discord serveru https://discord.gg/rPWFv6W diff --git a/flatpak/de.wger.flutter.metainfo.xml b/flatpak/de.wger.flutter.metainfo.xml index c7417dc8b..5c3551001 100755 --- a/flatpak/de.wger.flutter.metainfo.xml +++ b/flatpak/de.wger.flutter.metainfo.xml @@ -78,6 +78,12 @@ + + +

Bug fixes and improvements.

+
+ https://github.com/wger-project/flutter/releases/tag/1.9.1 +

Bug fixes and improvements.

diff --git a/integration_test/1_dashboard.dart b/integration_test/1_dashboard.dart index 5714320cf..7580b828e 100644 --- a/integration_test/1_dashboard.dart +++ b/integration_test/1_dashboard.dart @@ -25,23 +25,27 @@ import '../test_data/routines.dart'; Widget createDashboardScreen({String locale = 'en'}) { final mockWorkoutProvider = MockRoutinesProvider(); when(mockWorkoutProvider.items).thenReturn([getTestRoutine(exercises: getScreenshotExercises())]); - when(mockWorkoutProvider.currentRoutine) - .thenReturn(getTestRoutine(exercises: getScreenshotExercises())); + when( + mockWorkoutProvider.currentRoutine, + ).thenReturn(getTestRoutine(exercises: getScreenshotExercises())); - when(mockWorkoutProvider.fetchSessionData()).thenAnswer((a) => Future.value([ - WorkoutSession( - routineId: 1, - date: DateTime.now().add(const Duration(days: -1)), - timeStart: const TimeOfDay(hour: 17, minute: 34), - timeEnd: const TimeOfDay(hour: 19, minute: 3), - impression: 3, - ), - ])); + when(mockWorkoutProvider.fetchSessionData()).thenAnswer( + (a) => Future.value([ + WorkoutSession( + routineId: 1, + date: DateTime.now().add(const Duration(days: -1)), + timeStart: const TimeOfDay(hour: 17, minute: 34), + timeEnd: const TimeOfDay(hour: 19, minute: 3), + impression: 3, + ), + ]), + ); final mockNutritionProvider = weight.MockNutritionPlansProvider(); - when(mockNutritionProvider.currentPlan) - .thenAnswer((realInvocation) => getNutritionalPlanScreenshot()); + when( + mockNutritionProvider.currentPlan, + ).thenAnswer((realInvocation) => getNutritionalPlanScreenshot()); when(mockNutritionProvider.items).thenReturn([getNutritionalPlanScreenshot()]); final mockWeightProvider = weight.MockBodyWeightProvider(); diff --git a/integration_test/make_screenshots_test.dart b/integration_test/make_screenshots_test.dart index c4a94e687..3d4753634 100644 --- a/integration_test/make_screenshots_test.dart +++ b/integration_test/make_screenshots_test.dart @@ -17,7 +17,7 @@ enum DeviceType { sevenInchScreenshots, tenInchScreenshots, tvScreenshots, - wearScreenshots + wearScreenshots, } final destination = DeviceType.phoneScreenshots.name; @@ -42,7 +42,6 @@ Future takeScreenshot( const languages = [ // Note: it seems if too many languages are processed at once, some processes // disappear and no images are written. Doing this in smaller steps works fine - 'ar', 'ca', 'cs-CZ', diff --git a/lib/core/validators.dart b/lib/core/validators.dart new file mode 100644 index 000000000..c9e3e8357 --- /dev/null +++ b/lib/core/validators.dart @@ -0,0 +1,29 @@ +import 'package:wger/l10n/generated/app_localizations.dart'; + +String? validateUrl(String? value, AppLocalizations i18n, {bool required = true}) { + // Required? + if (required && (value == null || value.trim().isEmpty)) { + return i18n.enterValue; + } + + if (!required && (value == null || value.trim().isEmpty)) { + return null; + } + value = value!.trim(); + + if (!value.startsWith('http://') && !value.startsWith('https://')) { + return i18n.invalidUrl; + } + + // Try to parse as URI + try { + final uri = Uri.parse(value); + if (!uri.hasScheme || !uri.hasAuthority) { + return i18n.invalidUrl; + } + } catch (e) { + return i18n.invalidUrl; + } + + return null; +} diff --git a/lib/database/exercises/exercise_database.dart b/lib/database/exercises/exercise_database.dart index 35a3eaf23..e7c36a6e7 100644 --- a/lib/database/exercises/exercise_database.dart +++ b/lib/database/exercises/exercise_database.dart @@ -85,20 +85,20 @@ class ExerciseDatabase extends _$ExerciseDatabase { /// will fetch everything as needed from the server @override MigrationStrategy get migration => MigrationStrategy( - onUpgrade: (m, from, to) async { - // no-op, but needs to be defined - return; - }, - beforeOpen: (openingDetails) async { - if (openingDetails.hadUpgrade) { - final m = createMigrator(); - for (final table in allTables) { - await m.deleteTable(table.actualTableName); - await m.createTable(table); - } - } - }, - ); + onUpgrade: (m, from, to) async { + // no-op, but needs to be defined + return; + }, + beforeOpen: (openingDetails) async { + if (openingDetails.hadUpgrade) { + final m = createMigrator(); + for (final table in allTables) { + await m.deleteTable(table.actualTableName); + await m.createTable(table); + } + } + }, + ); Future deleteEverything() { return transaction(() async { diff --git a/lib/database/exercises/exercise_database.g.dart b/lib/database/exercises/exercise_database.g.dart index 05f81233a..6da378e2d 100644 --- a/lib/database/exercises/exercise_database.g.dart +++ b/lib/database/exercises/exercise_database.g.dart @@ -7,35 +7,61 @@ class $ExercisesTable extends Exercises with TableInfo<$ExercisesTable, Exercise @override final GeneratedDatabase attachedDatabase; final String? _alias; + $ExercisesTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); static const VerificationMeta _dataMeta = const VerificationMeta('data'); @override - late final GeneratedColumn data = GeneratedColumn('data', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + late final GeneratedColumn data = GeneratedColumn( + 'data', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); static const VerificationMeta _lastUpdateMeta = const VerificationMeta('lastUpdate'); @override late final GeneratedColumn lastUpdate = GeneratedColumn( - 'last_update', aliasedName, false, - type: DriftSqlType.dateTime, requiredDuringInsert: true); + 'last_update', + aliasedName, + false, + type: DriftSqlType.dateTime, + requiredDuringInsert: true, + ); static const VerificationMeta _lastFetchedMeta = const VerificationMeta('lastFetched'); @override late final GeneratedColumn lastFetched = GeneratedColumn( - 'last_fetched', aliasedName, false, - type: DriftSqlType.dateTime, requiredDuringInsert: true); + 'last_fetched', + aliasedName, + false, + type: DriftSqlType.dateTime, + requiredDuringInsert: true, + ); + @override List get $columns => [id, data, lastUpdate, lastFetched]; + @override String get aliasedName => _alias ?? actualTableName; + @override String get actualTableName => $name; static const String $name = 'exercises'; + @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -50,13 +76,17 @@ class $ExercisesTable extends Exercises with TableInfo<$ExercisesTable, Exercise } if (data.containsKey('last_update')) { context.handle( - _lastUpdateMeta, lastUpdate.isAcceptableOrUnknown(data['last_update']!, _lastUpdateMeta)); + _lastUpdateMeta, + lastUpdate.isAcceptableOrUnknown(data['last_update']!, _lastUpdateMeta), + ); } else if (isInserting) { context.missing(_lastUpdateMeta); } if (data.containsKey('last_fetched')) { - context.handle(_lastFetchedMeta, - lastFetched.isAcceptableOrUnknown(data['last_fetched']!, _lastFetchedMeta)); + context.handle( + _lastFetchedMeta, + lastFetched.isAcceptableOrUnknown(data['last_fetched']!, _lastFetchedMeta), + ); } else if (isInserting) { context.missing(_lastFetchedMeta); } @@ -65,16 +95,21 @@ class $ExercisesTable extends Exercises with TableInfo<$ExercisesTable, Exercise @override Set get $primaryKey => const {}; + @override ExerciseTable map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return ExerciseTable( id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, data: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, - lastUpdate: attachedDatabase.typeMapping - .read(DriftSqlType.dateTime, data['${effectivePrefix}last_update'])!, - lastFetched: attachedDatabase.typeMapping - .read(DriftSqlType.dateTime, data['${effectivePrefix}last_fetched'])!, + lastUpdate: attachedDatabase.typeMapping.read( + DriftSqlType.dateTime, + data['${effectivePrefix}last_update'], + )!, + lastFetched: attachedDatabase.typeMapping.read( + DriftSqlType.dateTime, + data['${effectivePrefix}last_fetched'], + )!, ); } @@ -93,8 +128,14 @@ class ExerciseTable extends DataClass implements Insertable { /// when the exercise itself was last updated in `lastUpdate`, we can save /// ourselves a lot of requests if we don't check too often final DateTime lastFetched; - const ExerciseTable( - {required this.id, required this.data, required this.lastUpdate, required this.lastFetched}); + + const ExerciseTable({ + required this.id, + required this.data, + required this.lastUpdate, + required this.lastFetched, + }); + @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -123,6 +164,7 @@ class ExerciseTable extends DataClass implements Insertable { lastFetched: serializer.fromJson(json['lastFetched']), ); } + @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; @@ -141,6 +183,7 @@ class ExerciseTable extends DataClass implements Insertable { lastUpdate: lastUpdate ?? this.lastUpdate, lastFetched: lastFetched ?? this.lastFetched, ); + ExerciseTable copyWithCompanion(ExercisesCompanion data) { return ExerciseTable( id: data.id.present ? data.id.value : this.id, @@ -163,6 +206,7 @@ class ExerciseTable extends DataClass implements Insertable { @override int get hashCode => Object.hash(id, data, lastUpdate, lastFetched); + @override bool operator ==(Object other) => identical(this, other) || @@ -179,6 +223,7 @@ class ExercisesCompanion extends UpdateCompanion { final Value lastUpdate; final Value lastFetched; final Value rowid; + const ExercisesCompanion({ this.id = const Value.absent(), this.data = const Value.absent(), @@ -186,16 +231,18 @@ class ExercisesCompanion extends UpdateCompanion { this.lastFetched = const Value.absent(), this.rowid = const Value.absent(), }); + ExercisesCompanion.insert({ required int id, required String data, required DateTime lastUpdate, required DateTime lastFetched, this.rowid = const Value.absent(), - }) : id = Value(id), - data = Value(data), - lastUpdate = Value(lastUpdate), - lastFetched = Value(lastFetched); + }) : id = Value(id), + data = Value(data), + lastUpdate = Value(lastUpdate), + lastFetched = Value(lastFetched); + static Insertable custom({ Expression? id, Expression? data, @@ -212,12 +259,13 @@ class ExercisesCompanion extends UpdateCompanion { }); } - ExercisesCompanion copyWith( - {Value? id, - Value? data, - Value? lastUpdate, - Value? lastFetched, - Value? rowid}) { + ExercisesCompanion copyWith({ + Value? id, + Value? data, + Value? lastUpdate, + Value? lastFetched, + Value? rowid, + }) { return ExercisesCompanion( id: id ?? this.id, data: data ?? this.data, @@ -265,26 +313,42 @@ class $MusclesTable extends Muscles with TableInfo<$MusclesTable, MuscleTable> { @override final GeneratedDatabase attachedDatabase; final String? _alias; + $MusclesTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); @override late final GeneratedColumnWithTypeConverter data = GeneratedColumn( - 'data', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true) - .withConverter($MusclesTable.$converterdata); + 'data', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ).withConverter($MusclesTable.$converterdata); + @override List get $columns => [id, data]; + @override String get aliasedName => _alias ?? actualTableName; + @override String get actualTableName => $name; static const String $name = 'muscles'; + @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -297,13 +361,15 @@ class $MusclesTable extends Muscles with TableInfo<$MusclesTable, MuscleTable> { @override Set get $primaryKey => const {}; + @override MuscleTable map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return MuscleTable( id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, data: $MusclesTable.$converterdata.fromSql( - attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!), + attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, + ), ); } @@ -318,7 +384,9 @@ class $MusclesTable extends Muscles with TableInfo<$MusclesTable, MuscleTable> { class MuscleTable extends DataClass implements Insertable { final int id; final Muscle data; + const MuscleTable({required this.id, required this.data}); + @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -330,10 +398,7 @@ class MuscleTable extends DataClass implements Insertable { } MusclesCompanion toCompanion(bool nullToAbsent) { - return MusclesCompanion( - id: Value(id), - data: Value(data), - ); + return MusclesCompanion(id: Value(id), data: Value(data)); } factory MuscleTable.fromJson(Map json, {ValueSerializer? serializer}) { @@ -343,6 +408,7 @@ class MuscleTable extends DataClass implements Insertable { data: serializer.fromJson(json['data']), ); } + @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; @@ -352,10 +418,9 @@ class MuscleTable extends DataClass implements Insertable { }; } - MuscleTable copyWith({int? id, Muscle? data}) => MuscleTable( - id: id ?? this.id, - data: data ?? this.data, - ); + MuscleTable copyWith({int? id, Muscle? data}) => + MuscleTable(id: id ?? this.id, data: data ?? this.data); + MuscleTable copyWithCompanion(MusclesCompanion data) { return MuscleTable( id: data.id.present ? data.id.value : this.id, @@ -374,6 +439,7 @@ class MuscleTable extends DataClass implements Insertable { @override int get hashCode => Object.hash(id, data); + @override bool operator ==(Object other) => identical(this, other) || @@ -384,17 +450,20 @@ class MusclesCompanion extends UpdateCompanion { final Value id; final Value data; final Value rowid; + const MusclesCompanion({ this.id = const Value.absent(), this.data = const Value.absent(), this.rowid = const Value.absent(), }); + MusclesCompanion.insert({ required int id, required Muscle data, this.rowid = const Value.absent(), - }) : id = Value(id), - data = Value(data); + }) : id = Value(id), + data = Value(data); + static Insertable custom({ Expression? id, Expression? data, @@ -408,11 +477,7 @@ class MusclesCompanion extends UpdateCompanion { } MusclesCompanion copyWith({Value? id, Value? data, Value? rowid}) { - return MusclesCompanion( - id: id ?? this.id, - data: data ?? this.data, - rowid: rowid ?? this.rowid, - ); + return MusclesCompanion(id: id ?? this.id, data: data ?? this.data, rowid: rowid ?? this.rowid); } @override @@ -445,26 +510,42 @@ class $EquipmentsTable extends Equipments with TableInfo<$EquipmentsTable, Equip @override final GeneratedDatabase attachedDatabase; final String? _alias; + $EquipmentsTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); @override late final GeneratedColumnWithTypeConverter data = GeneratedColumn( - 'data', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true) - .withConverter($EquipmentsTable.$converterdata); + 'data', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ).withConverter($EquipmentsTable.$converterdata); + @override List get $columns => [id, data]; + @override String get aliasedName => _alias ?? actualTableName; + @override String get actualTableName => $name; static const String $name = 'equipments'; + @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -477,13 +558,15 @@ class $EquipmentsTable extends Equipments with TableInfo<$EquipmentsTable, Equip @override Set get $primaryKey => const {}; + @override EquipmentTable map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return EquipmentTable( id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, data: $EquipmentsTable.$converterdata.fromSql( - attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!), + attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, + ), ); } @@ -498,7 +581,9 @@ class $EquipmentsTable extends Equipments with TableInfo<$EquipmentsTable, Equip class EquipmentTable extends DataClass implements Insertable { final int id; final Equipment data; + const EquipmentTable({required this.id, required this.data}); + @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -510,10 +595,7 @@ class EquipmentTable extends DataClass implements Insertable { } EquipmentsCompanion toCompanion(bool nullToAbsent) { - return EquipmentsCompanion( - id: Value(id), - data: Value(data), - ); + return EquipmentsCompanion(id: Value(id), data: Value(data)); } factory EquipmentTable.fromJson(Map json, {ValueSerializer? serializer}) { @@ -523,6 +605,7 @@ class EquipmentTable extends DataClass implements Insertable { data: serializer.fromJson(json['data']), ); } + @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; @@ -532,10 +615,9 @@ class EquipmentTable extends DataClass implements Insertable { }; } - EquipmentTable copyWith({int? id, Equipment? data}) => EquipmentTable( - id: id ?? this.id, - data: data ?? this.data, - ); + EquipmentTable copyWith({int? id, Equipment? data}) => + EquipmentTable(id: id ?? this.id, data: data ?? this.data); + EquipmentTable copyWithCompanion(EquipmentsCompanion data) { return EquipmentTable( id: data.id.present ? data.id.value : this.id, @@ -554,6 +636,7 @@ class EquipmentTable extends DataClass implements Insertable { @override int get hashCode => Object.hash(id, data); + @override bool operator ==(Object other) => identical(this, other) || @@ -564,17 +647,20 @@ class EquipmentsCompanion extends UpdateCompanion { final Value id; final Value data; final Value rowid; + const EquipmentsCompanion({ this.id = const Value.absent(), this.data = const Value.absent(), this.rowid = const Value.absent(), }); + EquipmentsCompanion.insert({ required int id, required Equipment data, this.rowid = const Value.absent(), - }) : id = Value(id), - data = Value(data); + }) : id = Value(id), + data = Value(data); + static Insertable custom({ Expression? id, Expression? data, @@ -625,26 +711,43 @@ class $CategoriesTable extends Categories with TableInfo<$CategoriesTable, Categ @override final GeneratedDatabase attachedDatabase; final String? _alias; + $CategoriesTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); @override late final GeneratedColumnWithTypeConverter data = - GeneratedColumn('data', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true) - .withConverter($CategoriesTable.$converterdata); + GeneratedColumn( + 'data', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ).withConverter($CategoriesTable.$converterdata); + @override List get $columns => [id, data]; + @override String get aliasedName => _alias ?? actualTableName; + @override String get actualTableName => $name; static const String $name = 'categories'; + @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -657,13 +760,15 @@ class $CategoriesTable extends Categories with TableInfo<$CategoriesTable, Categ @override Set get $primaryKey => const {}; + @override CategoryTable map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return CategoryTable( id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, data: $CategoriesTable.$converterdata.fromSql( - attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!), + attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, + ), ); } @@ -678,7 +783,9 @@ class $CategoriesTable extends Categories with TableInfo<$CategoriesTable, Categ class CategoryTable extends DataClass implements Insertable { final int id; final ExerciseCategory data; + const CategoryTable({required this.id, required this.data}); + @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -690,10 +797,7 @@ class CategoryTable extends DataClass implements Insertable { } CategoriesCompanion toCompanion(bool nullToAbsent) { - return CategoriesCompanion( - id: Value(id), - data: Value(data), - ); + return CategoriesCompanion(id: Value(id), data: Value(data)); } factory CategoryTable.fromJson(Map json, {ValueSerializer? serializer}) { @@ -703,6 +807,7 @@ class CategoryTable extends DataClass implements Insertable { data: serializer.fromJson(json['data']), ); } + @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; @@ -712,10 +817,9 @@ class CategoryTable extends DataClass implements Insertable { }; } - CategoryTable copyWith({int? id, ExerciseCategory? data}) => CategoryTable( - id: id ?? this.id, - data: data ?? this.data, - ); + CategoryTable copyWith({int? id, ExerciseCategory? data}) => + CategoryTable(id: id ?? this.id, data: data ?? this.data); + CategoryTable copyWithCompanion(CategoriesCompanion data) { return CategoryTable( id: data.id.present ? data.id.value : this.id, @@ -734,6 +838,7 @@ class CategoryTable extends DataClass implements Insertable { @override int get hashCode => Object.hash(id, data); + @override bool operator ==(Object other) => identical(this, other) || @@ -744,17 +849,20 @@ class CategoriesCompanion extends UpdateCompanion { final Value id; final Value data; final Value rowid; + const CategoriesCompanion({ this.id = const Value.absent(), this.data = const Value.absent(), this.rowid = const Value.absent(), }); + CategoriesCompanion.insert({ required int id, required ExerciseCategory data, this.rowid = const Value.absent(), - }) : id = Value(id), - data = Value(data); + }) : id = Value(id), + data = Value(data); + static Insertable custom({ Expression? id, Expression? data, @@ -805,26 +913,42 @@ class $LanguagesTable extends Languages with TableInfo<$LanguagesTable, Language @override final GeneratedDatabase attachedDatabase; final String? _alias; + $LanguagesTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); @override late final GeneratedColumnWithTypeConverter data = GeneratedColumn( - 'data', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true) - .withConverter($LanguagesTable.$converterdata); + 'data', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ).withConverter($LanguagesTable.$converterdata); + @override List get $columns => [id, data]; + @override String get aliasedName => _alias ?? actualTableName; + @override String get actualTableName => $name; static const String $name = 'languages'; + @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -837,13 +961,15 @@ class $LanguagesTable extends Languages with TableInfo<$LanguagesTable, Language @override Set get $primaryKey => const {}; + @override LanguagesTable map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return LanguagesTable( id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, data: $LanguagesTable.$converterdata.fromSql( - attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!), + attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, + ), ); } @@ -858,7 +984,9 @@ class $LanguagesTable extends Languages with TableInfo<$LanguagesTable, Language class LanguagesTable extends DataClass implements Insertable { final int id; final Language data; + const LanguagesTable({required this.id, required this.data}); + @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -870,10 +998,7 @@ class LanguagesTable extends DataClass implements Insertable { } LanguagesCompanion toCompanion(bool nullToAbsent) { - return LanguagesCompanion( - id: Value(id), - data: Value(data), - ); + return LanguagesCompanion(id: Value(id), data: Value(data)); } factory LanguagesTable.fromJson(Map json, {ValueSerializer? serializer}) { @@ -883,6 +1008,7 @@ class LanguagesTable extends DataClass implements Insertable { data: serializer.fromJson(json['data']), ); } + @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; @@ -892,10 +1018,9 @@ class LanguagesTable extends DataClass implements Insertable { }; } - LanguagesTable copyWith({int? id, Language? data}) => LanguagesTable( - id: id ?? this.id, - data: data ?? this.data, - ); + LanguagesTable copyWith({int? id, Language? data}) => + LanguagesTable(id: id ?? this.id, data: data ?? this.data); + LanguagesTable copyWithCompanion(LanguagesCompanion data) { return LanguagesTable( id: data.id.present ? data.id.value : this.id, @@ -914,6 +1039,7 @@ class LanguagesTable extends DataClass implements Insertable { @override int get hashCode => Object.hash(id, data); + @override bool operator ==(Object other) => identical(this, other) || @@ -924,17 +1050,20 @@ class LanguagesCompanion extends UpdateCompanion { final Value id; final Value data; final Value rowid; + const LanguagesCompanion({ this.id = const Value.absent(), this.data = const Value.absent(), this.rowid = const Value.absent(), }); + LanguagesCompanion.insert({ required int id, required Language data, this.rowid = const Value.absent(), - }) : id = Value(id), - data = Value(data); + }) : id = Value(id), + data = Value(data); + static Insertable custom({ Expression? id, Expression? data, @@ -983,34 +1112,44 @@ class LanguagesCompanion extends UpdateCompanion { abstract class _$ExerciseDatabase extends GeneratedDatabase { _$ExerciseDatabase(QueryExecutor e) : super(e); + $ExerciseDatabaseManager get managers => $ExerciseDatabaseManager(this); late final $ExercisesTable exercises = $ExercisesTable(this); late final $MusclesTable muscles = $MusclesTable(this); late final $EquipmentsTable equipments = $EquipmentsTable(this); late final $CategoriesTable categories = $CategoriesTable(this); late final $LanguagesTable languages = $LanguagesTable(this); + @override Iterable> get allTables => allSchemaEntities.whereType>(); + @override - List get allSchemaEntities => - [exercises, muscles, equipments, categories, languages]; + List get allSchemaEntities => [ + exercises, + muscles, + equipments, + categories, + languages, + ]; } -typedef $$ExercisesTableCreateCompanionBuilder = ExercisesCompanion Function({ - required int id, - required String data, - required DateTime lastUpdate, - required DateTime lastFetched, - Value rowid, -}); -typedef $$ExercisesTableUpdateCompanionBuilder = ExercisesCompanion Function({ - Value id, - Value data, - Value lastUpdate, - Value lastFetched, - Value rowid, -}); +typedef $$ExercisesTableCreateCompanionBuilder = + ExercisesCompanion Function({ + required int id, + required String data, + required DateTime lastUpdate, + required DateTime lastFetched, + Value rowid, + }); +typedef $$ExercisesTableUpdateCompanionBuilder = + ExercisesCompanion Function({ + Value id, + Value data, + Value lastUpdate, + Value lastFetched, + Value rowid, + }); class $$ExercisesTableFilterComposer extends Composer<_$ExerciseDatabase, $ExercisesTable> { $$ExercisesTableFilterComposer({ @@ -1020,6 +1159,7 @@ class $$ExercisesTableFilterComposer extends Composer<_$ExerciseDatabase, $Exerc super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); @@ -1041,6 +1181,7 @@ class $$ExercisesTableOrderingComposer extends Composer<_$ExerciseDatabase, $Exe super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); @@ -1062,6 +1203,7 @@ class $$ExercisesTableAnnotationComposer extends Composer<_$ExerciseDatabase, $E super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get data => @@ -1074,82 +1216,83 @@ class $$ExercisesTableAnnotationComposer extends Composer<_$ExerciseDatabase, $E $composableBuilder(column: $table.lastFetched, builder: (column) => column); } -class $$ExercisesTableTableManager extends RootTableManager< - _$ExerciseDatabase, - $ExercisesTable, - ExerciseTable, - $$ExercisesTableFilterComposer, - $$ExercisesTableOrderingComposer, - $$ExercisesTableAnnotationComposer, - $$ExercisesTableCreateCompanionBuilder, - $$ExercisesTableUpdateCompanionBuilder, - (ExerciseTable, BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>), - ExerciseTable, - PrefetchHooks Function()> { +class $$ExercisesTableTableManager + extends + RootTableManager< + _$ExerciseDatabase, + $ExercisesTable, + ExerciseTable, + $$ExercisesTableFilterComposer, + $$ExercisesTableOrderingComposer, + $$ExercisesTableAnnotationComposer, + $$ExercisesTableCreateCompanionBuilder, + $$ExercisesTableUpdateCompanionBuilder, + (ExerciseTable, BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>), + ExerciseTable, + PrefetchHooks Function() + > { $$ExercisesTableTableManager(_$ExerciseDatabase db, $ExercisesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, createFilteringComposer: () => $$ExercisesTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$ExercisesTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$ExercisesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value data = const Value.absent(), - Value lastUpdate = const Value.absent(), - Value lastFetched = const Value.absent(), - Value rowid = const Value.absent(), - }) => - ExercisesCompanion( - id: id, - data: data, - lastUpdate: lastUpdate, - lastFetched: lastFetched, - rowid: rowid, - ), - createCompanionCallback: ({ - required int id, - required String data, - required DateTime lastUpdate, - required DateTime lastFetched, - Value rowid = const Value.absent(), - }) => - ExercisesCompanion.insert( - id: id, - data: data, - lastUpdate: lastUpdate, - lastFetched: lastFetched, - rowid: rowid, - ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value data = const Value.absent(), + Value lastUpdate = const Value.absent(), + Value lastFetched = const Value.absent(), + Value rowid = const Value.absent(), + }) => ExercisesCompanion( + id: id, + data: data, + lastUpdate: lastUpdate, + lastFetched: lastFetched, + rowid: rowid, + ), + createCompanionCallback: + ({ + required int id, + required String data, + required DateTime lastUpdate, + required DateTime lastFetched, + Value rowid = const Value.absent(), + }) => ExercisesCompanion.insert( + id: id, + data: data, + lastUpdate: lastUpdate, + lastFetched: lastFetched, + rowid: rowid, + ), withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$ExercisesTableProcessedTableManager = ProcessedTableManager< - _$ExerciseDatabase, - $ExercisesTable, - ExerciseTable, - $$ExercisesTableFilterComposer, - $$ExercisesTableOrderingComposer, - $$ExercisesTableAnnotationComposer, - $$ExercisesTableCreateCompanionBuilder, - $$ExercisesTableUpdateCompanionBuilder, - (ExerciseTable, BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>), - ExerciseTable, - PrefetchHooks Function()>; -typedef $$MusclesTableCreateCompanionBuilder = MusclesCompanion Function({ - required int id, - required Muscle data, - Value rowid, -}); -typedef $$MusclesTableUpdateCompanionBuilder = MusclesCompanion Function({ - Value id, - Value data, - Value rowid, -}); +typedef $$ExercisesTableProcessedTableManager = + ProcessedTableManager< + _$ExerciseDatabase, + $ExercisesTable, + ExerciseTable, + $$ExercisesTableFilterComposer, + $$ExercisesTableOrderingComposer, + $$ExercisesTableAnnotationComposer, + $$ExercisesTableCreateCompanionBuilder, + $$ExercisesTableUpdateCompanionBuilder, + (ExerciseTable, BaseReferences<_$ExerciseDatabase, $ExercisesTable, ExerciseTable>), + ExerciseTable, + PrefetchHooks Function() + >; +typedef $$MusclesTableCreateCompanionBuilder = + MusclesCompanion Function({required int id, required Muscle data, Value rowid}); +typedef $$MusclesTableUpdateCompanionBuilder = + MusclesCompanion Function({Value id, Value data, Value rowid}); class $$MusclesTableFilterComposer extends Composer<_$ExerciseDatabase, $MusclesTable> { $$MusclesTableFilterComposer({ @@ -1159,11 +1302,14 @@ class $$MusclesTableFilterComposer extends Composer<_$ExerciseDatabase, $Muscles super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); ColumnWithTypeConverterFilters get data => $composableBuilder( - column: $table.data, builder: (column) => ColumnWithTypeConverterFilters(column)); + column: $table.data, + builder: (column) => ColumnWithTypeConverterFilters(column), + ); } class $$MusclesTableOrderingComposer extends Composer<_$ExerciseDatabase, $MusclesTable> { @@ -1174,6 +1320,7 @@ class $$MusclesTableOrderingComposer extends Composer<_$ExerciseDatabase, $Muscl super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); @@ -1189,80 +1336,71 @@ class $$MusclesTableAnnotationComposer extends Composer<_$ExerciseDatabase, $Mus super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumnWithTypeConverter get data => $composableBuilder(column: $table.data, builder: (column) => column); } -class $$MusclesTableTableManager extends RootTableManager< - _$ExerciseDatabase, - $MusclesTable, - MuscleTable, - $$MusclesTableFilterComposer, - $$MusclesTableOrderingComposer, - $$MusclesTableAnnotationComposer, - $$MusclesTableCreateCompanionBuilder, - $$MusclesTableUpdateCompanionBuilder, - (MuscleTable, BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>), - MuscleTable, - PrefetchHooks Function()> { +class $$MusclesTableTableManager + extends + RootTableManager< + _$ExerciseDatabase, + $MusclesTable, + MuscleTable, + $$MusclesTableFilterComposer, + $$MusclesTableOrderingComposer, + $$MusclesTableAnnotationComposer, + $$MusclesTableCreateCompanionBuilder, + $$MusclesTableUpdateCompanionBuilder, + (MuscleTable, BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>), + MuscleTable, + PrefetchHooks Function() + > { $$MusclesTableTableManager(_$ExerciseDatabase db, $MusclesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, createFilteringComposer: () => $$MusclesTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$MusclesTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$MusclesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value data = const Value.absent(), - Value rowid = const Value.absent(), - }) => - MusclesCompanion( - id: id, - data: data, - rowid: rowid, - ), - createCompanionCallback: ({ - required int id, - required Muscle data, - Value rowid = const Value.absent(), - }) => - MusclesCompanion.insert( - id: id, - data: data, - rowid: rowid, - ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value data = const Value.absent(), + Value rowid = const Value.absent(), + }) => MusclesCompanion(id: id, data: data, rowid: rowid), + createCompanionCallback: + ({required int id, required Muscle data, Value rowid = const Value.absent()}) => + MusclesCompanion.insert(id: id, data: data, rowid: rowid), withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$MusclesTableProcessedTableManager = ProcessedTableManager< - _$ExerciseDatabase, - $MusclesTable, - MuscleTable, - $$MusclesTableFilterComposer, - $$MusclesTableOrderingComposer, - $$MusclesTableAnnotationComposer, - $$MusclesTableCreateCompanionBuilder, - $$MusclesTableUpdateCompanionBuilder, - (MuscleTable, BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>), - MuscleTable, - PrefetchHooks Function()>; -typedef $$EquipmentsTableCreateCompanionBuilder = EquipmentsCompanion Function({ - required int id, - required Equipment data, - Value rowid, -}); -typedef $$EquipmentsTableUpdateCompanionBuilder = EquipmentsCompanion Function({ - Value id, - Value data, - Value rowid, -}); +typedef $$MusclesTableProcessedTableManager = + ProcessedTableManager< + _$ExerciseDatabase, + $MusclesTable, + MuscleTable, + $$MusclesTableFilterComposer, + $$MusclesTableOrderingComposer, + $$MusclesTableAnnotationComposer, + $$MusclesTableCreateCompanionBuilder, + $$MusclesTableUpdateCompanionBuilder, + (MuscleTable, BaseReferences<_$ExerciseDatabase, $MusclesTable, MuscleTable>), + MuscleTable, + PrefetchHooks Function() + >; +typedef $$EquipmentsTableCreateCompanionBuilder = + EquipmentsCompanion Function({required int id, required Equipment data, Value rowid}); +typedef $$EquipmentsTableUpdateCompanionBuilder = + EquipmentsCompanion Function({Value id, Value data, Value rowid}); class $$EquipmentsTableFilterComposer extends Composer<_$ExerciseDatabase, $EquipmentsTable> { $$EquipmentsTableFilterComposer({ @@ -1272,11 +1410,14 @@ class $$EquipmentsTableFilterComposer extends Composer<_$ExerciseDatabase, $Equi super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); ColumnWithTypeConverterFilters get data => $composableBuilder( - column: $table.data, builder: (column) => ColumnWithTypeConverterFilters(column)); + column: $table.data, + builder: (column) => ColumnWithTypeConverterFilters(column), + ); } class $$EquipmentsTableOrderingComposer extends Composer<_$ExerciseDatabase, $EquipmentsTable> { @@ -1287,6 +1428,7 @@ class $$EquipmentsTableOrderingComposer extends Composer<_$ExerciseDatabase, $Eq super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); @@ -1302,80 +1444,78 @@ class $$EquipmentsTableAnnotationComposer extends Composer<_$ExerciseDatabase, $ super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumnWithTypeConverter get data => $composableBuilder(column: $table.data, builder: (column) => column); } -class $$EquipmentsTableTableManager extends RootTableManager< - _$ExerciseDatabase, - $EquipmentsTable, - EquipmentTable, - $$EquipmentsTableFilterComposer, - $$EquipmentsTableOrderingComposer, - $$EquipmentsTableAnnotationComposer, - $$EquipmentsTableCreateCompanionBuilder, - $$EquipmentsTableUpdateCompanionBuilder, - (EquipmentTable, BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>), - EquipmentTable, - PrefetchHooks Function()> { +class $$EquipmentsTableTableManager + extends + RootTableManager< + _$ExerciseDatabase, + $EquipmentsTable, + EquipmentTable, + $$EquipmentsTableFilterComposer, + $$EquipmentsTableOrderingComposer, + $$EquipmentsTableAnnotationComposer, + $$EquipmentsTableCreateCompanionBuilder, + $$EquipmentsTableUpdateCompanionBuilder, + (EquipmentTable, BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>), + EquipmentTable, + PrefetchHooks Function() + > { $$EquipmentsTableTableManager(_$ExerciseDatabase db, $EquipmentsTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, createFilteringComposer: () => $$EquipmentsTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$EquipmentsTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$EquipmentsTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value data = const Value.absent(), - Value rowid = const Value.absent(), - }) => - EquipmentsCompanion( - id: id, - data: data, - rowid: rowid, - ), - createCompanionCallback: ({ - required int id, - required Equipment data, - Value rowid = const Value.absent(), - }) => - EquipmentsCompanion.insert( - id: id, - data: data, - rowid: rowid, - ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value data = const Value.absent(), + Value rowid = const Value.absent(), + }) => EquipmentsCompanion(id: id, data: data, rowid: rowid), + createCompanionCallback: + ({ + required int id, + required Equipment data, + Value rowid = const Value.absent(), + }) => EquipmentsCompanion.insert(id: id, data: data, rowid: rowid), withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$EquipmentsTableProcessedTableManager = ProcessedTableManager< - _$ExerciseDatabase, - $EquipmentsTable, - EquipmentTable, - $$EquipmentsTableFilterComposer, - $$EquipmentsTableOrderingComposer, - $$EquipmentsTableAnnotationComposer, - $$EquipmentsTableCreateCompanionBuilder, - $$EquipmentsTableUpdateCompanionBuilder, - (EquipmentTable, BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>), - EquipmentTable, - PrefetchHooks Function()>; -typedef $$CategoriesTableCreateCompanionBuilder = CategoriesCompanion Function({ - required int id, - required ExerciseCategory data, - Value rowid, -}); -typedef $$CategoriesTableUpdateCompanionBuilder = CategoriesCompanion Function({ - Value id, - Value data, - Value rowid, -}); +typedef $$EquipmentsTableProcessedTableManager = + ProcessedTableManager< + _$ExerciseDatabase, + $EquipmentsTable, + EquipmentTable, + $$EquipmentsTableFilterComposer, + $$EquipmentsTableOrderingComposer, + $$EquipmentsTableAnnotationComposer, + $$EquipmentsTableCreateCompanionBuilder, + $$EquipmentsTableUpdateCompanionBuilder, + (EquipmentTable, BaseReferences<_$ExerciseDatabase, $EquipmentsTable, EquipmentTable>), + EquipmentTable, + PrefetchHooks Function() + >; +typedef $$CategoriesTableCreateCompanionBuilder = + CategoriesCompanion Function({ + required int id, + required ExerciseCategory data, + Value rowid, + }); +typedef $$CategoriesTableUpdateCompanionBuilder = + CategoriesCompanion Function({Value id, Value data, Value rowid}); class $$CategoriesTableFilterComposer extends Composer<_$ExerciseDatabase, $CategoriesTable> { $$CategoriesTableFilterComposer({ @@ -1385,12 +1525,15 @@ class $$CategoriesTableFilterComposer extends Composer<_$ExerciseDatabase, $Cate super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); ColumnWithTypeConverterFilters get data => $composableBuilder( - column: $table.data, builder: (column) => ColumnWithTypeConverterFilters(column)); + column: $table.data, + builder: (column) => ColumnWithTypeConverterFilters(column), + ); } class $$CategoriesTableOrderingComposer extends Composer<_$ExerciseDatabase, $CategoriesTable> { @@ -1401,6 +1544,7 @@ class $$CategoriesTableOrderingComposer extends Composer<_$ExerciseDatabase, $Ca super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); @@ -1416,80 +1560,74 @@ class $$CategoriesTableAnnotationComposer extends Composer<_$ExerciseDatabase, $ super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumnWithTypeConverter get data => $composableBuilder(column: $table.data, builder: (column) => column); } -class $$CategoriesTableTableManager extends RootTableManager< - _$ExerciseDatabase, - $CategoriesTable, - CategoryTable, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (CategoryTable, BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>), - CategoryTable, - PrefetchHooks Function()> { +class $$CategoriesTableTableManager + extends + RootTableManager< + _$ExerciseDatabase, + $CategoriesTable, + CategoryTable, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (CategoryTable, BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>), + CategoryTable, + PrefetchHooks Function() + > { $$CategoriesTableTableManager(_$ExerciseDatabase db, $CategoriesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, createFilteringComposer: () => $$CategoriesTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$CategoriesTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$CategoriesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value data = const Value.absent(), - Value rowid = const Value.absent(), - }) => - CategoriesCompanion( - id: id, - data: data, - rowid: rowid, - ), - createCompanionCallback: ({ - required int id, - required ExerciseCategory data, - Value rowid = const Value.absent(), - }) => - CategoriesCompanion.insert( - id: id, - data: data, - rowid: rowid, - ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value data = const Value.absent(), + Value rowid = const Value.absent(), + }) => CategoriesCompanion(id: id, data: data, rowid: rowid), + createCompanionCallback: + ({ + required int id, + required ExerciseCategory data, + Value rowid = const Value.absent(), + }) => CategoriesCompanion.insert(id: id, data: data, rowid: rowid), withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$CategoriesTableProcessedTableManager = ProcessedTableManager< - _$ExerciseDatabase, - $CategoriesTable, - CategoryTable, - $$CategoriesTableFilterComposer, - $$CategoriesTableOrderingComposer, - $$CategoriesTableAnnotationComposer, - $$CategoriesTableCreateCompanionBuilder, - $$CategoriesTableUpdateCompanionBuilder, - (CategoryTable, BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>), - CategoryTable, - PrefetchHooks Function()>; -typedef $$LanguagesTableCreateCompanionBuilder = LanguagesCompanion Function({ - required int id, - required Language data, - Value rowid, -}); -typedef $$LanguagesTableUpdateCompanionBuilder = LanguagesCompanion Function({ - Value id, - Value data, - Value rowid, -}); +typedef $$CategoriesTableProcessedTableManager = + ProcessedTableManager< + _$ExerciseDatabase, + $CategoriesTable, + CategoryTable, + $$CategoriesTableFilterComposer, + $$CategoriesTableOrderingComposer, + $$CategoriesTableAnnotationComposer, + $$CategoriesTableCreateCompanionBuilder, + $$CategoriesTableUpdateCompanionBuilder, + (CategoryTable, BaseReferences<_$ExerciseDatabase, $CategoriesTable, CategoryTable>), + CategoryTable, + PrefetchHooks Function() + >; +typedef $$LanguagesTableCreateCompanionBuilder = + LanguagesCompanion Function({required int id, required Language data, Value rowid}); +typedef $$LanguagesTableUpdateCompanionBuilder = + LanguagesCompanion Function({Value id, Value data, Value rowid}); class $$LanguagesTableFilterComposer extends Composer<_$ExerciseDatabase, $LanguagesTable> { $$LanguagesTableFilterComposer({ @@ -1499,11 +1637,14 @@ class $$LanguagesTableFilterComposer extends Composer<_$ExerciseDatabase, $Langu super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); ColumnWithTypeConverterFilters get data => $composableBuilder( - column: $table.data, builder: (column) => ColumnWithTypeConverterFilters(column)); + column: $table.data, + builder: (column) => ColumnWithTypeConverterFilters(column), + ); } class $$LanguagesTableOrderingComposer extends Composer<_$ExerciseDatabase, $LanguagesTable> { @@ -1514,6 +1655,7 @@ class $$LanguagesTableOrderingComposer extends Composer<_$ExerciseDatabase, $Lan super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); @@ -1529,79 +1671,85 @@ class $$LanguagesTableAnnotationComposer extends Composer<_$ExerciseDatabase, $L super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumnWithTypeConverter get data => $composableBuilder(column: $table.data, builder: (column) => column); } -class $$LanguagesTableTableManager extends RootTableManager< - _$ExerciseDatabase, - $LanguagesTable, - LanguagesTable, - $$LanguagesTableFilterComposer, - $$LanguagesTableOrderingComposer, - $$LanguagesTableAnnotationComposer, - $$LanguagesTableCreateCompanionBuilder, - $$LanguagesTableUpdateCompanionBuilder, - (LanguagesTable, BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>), - LanguagesTable, - PrefetchHooks Function()> { +class $$LanguagesTableTableManager + extends + RootTableManager< + _$ExerciseDatabase, + $LanguagesTable, + LanguagesTable, + $$LanguagesTableFilterComposer, + $$LanguagesTableOrderingComposer, + $$LanguagesTableAnnotationComposer, + $$LanguagesTableCreateCompanionBuilder, + $$LanguagesTableUpdateCompanionBuilder, + (LanguagesTable, BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>), + LanguagesTable, + PrefetchHooks Function() + > { $$LanguagesTableTableManager(_$ExerciseDatabase db, $LanguagesTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, createFilteringComposer: () => $$LanguagesTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$LanguagesTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$LanguagesTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value data = const Value.absent(), - Value rowid = const Value.absent(), - }) => - LanguagesCompanion( - id: id, - data: data, - rowid: rowid, - ), - createCompanionCallback: ({ - required int id, - required Language data, - Value rowid = const Value.absent(), - }) => - LanguagesCompanion.insert( - id: id, - data: data, - rowid: rowid, - ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value data = const Value.absent(), + Value rowid = const Value.absent(), + }) => LanguagesCompanion(id: id, data: data, rowid: rowid), + createCompanionCallback: + ({ + required int id, + required Language data, + Value rowid = const Value.absent(), + }) => LanguagesCompanion.insert(id: id, data: data, rowid: rowid), withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$LanguagesTableProcessedTableManager = ProcessedTableManager< - _$ExerciseDatabase, - $LanguagesTable, - LanguagesTable, - $$LanguagesTableFilterComposer, - $$LanguagesTableOrderingComposer, - $$LanguagesTableAnnotationComposer, - $$LanguagesTableCreateCompanionBuilder, - $$LanguagesTableUpdateCompanionBuilder, - (LanguagesTable, BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>), - LanguagesTable, - PrefetchHooks Function()>; +typedef $$LanguagesTableProcessedTableManager = + ProcessedTableManager< + _$ExerciseDatabase, + $LanguagesTable, + LanguagesTable, + $$LanguagesTableFilterComposer, + $$LanguagesTableOrderingComposer, + $$LanguagesTableAnnotationComposer, + $$LanguagesTableCreateCompanionBuilder, + $$LanguagesTableUpdateCompanionBuilder, + (LanguagesTable, BaseReferences<_$ExerciseDatabase, $LanguagesTable, LanguagesTable>), + LanguagesTable, + PrefetchHooks Function() + >; class $ExerciseDatabaseManager { final _$ExerciseDatabase _db; + $ExerciseDatabaseManager(this._db); + $$ExercisesTableTableManager get exercises => $$ExercisesTableTableManager(_db, _db.exercises); + $$MusclesTableTableManager get muscles => $$MusclesTableTableManager(_db, _db.muscles); + $$EquipmentsTableTableManager get equipments => $$EquipmentsTableTableManager(_db, _db.equipments); + $$CategoriesTableTableManager get categories => $$CategoriesTableTableManager(_db, _db.categories); + $$LanguagesTableTableManager get languages => $$LanguagesTableTableManager(_db, _db.languages); } diff --git a/lib/database/ingredients/ingredients_database.dart b/lib/database/ingredients/ingredients_database.dart index cd14ea9eb..28f839ed1 100644 --- a/lib/database/ingredients/ingredients_database.dart +++ b/lib/database/ingredients/ingredients_database.dart @@ -38,20 +38,20 @@ class IngredientDatabase extends _$IngredientDatabase { /// will fetch everything as needed from the server @override MigrationStrategy get migration => MigrationStrategy( - onUpgrade: (m, from, to) async { - // no-op, but needs to be defined - return; - }, - beforeOpen: (openingDetails) async { - if (openingDetails.hadUpgrade) { - final m = createMigrator(); - for (final table in allTables) { - await m.deleteTable(table.actualTableName); - await m.createTable(table); - } - } - }, - ); + onUpgrade: (m, from, to) async { + // no-op, but needs to be defined + return; + }, + beforeOpen: (openingDetails) async { + if (openingDetails.hadUpgrade) { + final m = createMigrator(); + for (final table in allTables) { + await m.deleteTable(table.actualTableName); + await m.createTable(table); + } + } + }, + ); Future deleteEverything() { return transaction(() async { diff --git a/lib/database/ingredients/ingredients_database.g.dart b/lib/database/ingredients/ingredients_database.g.dart index 63633c833..a8bc80069 100644 --- a/lib/database/ingredients/ingredients_database.g.dart +++ b/lib/database/ingredients/ingredients_database.g.dart @@ -7,30 +7,52 @@ class $IngredientsTable extends Ingredients with TableInfo<$IngredientsTable, In @override final GeneratedDatabase attachedDatabase; final String? _alias; + $IngredientsTable(this.attachedDatabase, [this._alias]); + static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - type: DriftSqlType.int, requiredDuringInsert: true); + late final GeneratedColumn id = GeneratedColumn( + 'id', + aliasedName, + false, + type: DriftSqlType.int, + requiredDuringInsert: true, + ); static const VerificationMeta _dataMeta = const VerificationMeta('data'); @override - late final GeneratedColumn data = GeneratedColumn('data', aliasedName, false, - type: DriftSqlType.string, requiredDuringInsert: true); + late final GeneratedColumn data = GeneratedColumn( + 'data', + aliasedName, + false, + type: DriftSqlType.string, + requiredDuringInsert: true, + ); static const VerificationMeta _lastFetchedMeta = const VerificationMeta('lastFetched'); @override late final GeneratedColumn lastFetched = GeneratedColumn( - 'last_fetched', aliasedName, false, - type: DriftSqlType.dateTime, requiredDuringInsert: true); + 'last_fetched', + aliasedName, + false, + type: DriftSqlType.dateTime, + requiredDuringInsert: true, + ); + @override List get $columns => [id, data, lastFetched]; + @override String get aliasedName => _alias ?? actualTableName; + @override String get actualTableName => $name; static const String $name = 'ingredients'; + @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity( + Insertable instance, { + bool isInserting = false, + }) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { @@ -44,8 +66,10 @@ class $IngredientsTable extends Ingredients with TableInfo<$IngredientsTable, In context.missing(_dataMeta); } if (data.containsKey('last_fetched')) { - context.handle(_lastFetchedMeta, - lastFetched.isAcceptableOrUnknown(data['last_fetched']!, _lastFetchedMeta)); + context.handle( + _lastFetchedMeta, + lastFetched.isAcceptableOrUnknown(data['last_fetched']!, _lastFetchedMeta), + ); } else if (isInserting) { context.missing(_lastFetchedMeta); } @@ -54,14 +78,17 @@ class $IngredientsTable extends Ingredients with TableInfo<$IngredientsTable, In @override Set get $primaryKey => const {}; + @override IngredientTable map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return IngredientTable( id: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}id'])!, data: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}data'])!, - lastFetched: attachedDatabase.typeMapping - .read(DriftSqlType.dateTime, data['${effectivePrefix}last_fetched'])!, + lastFetched: attachedDatabase.typeMapping.read( + DriftSqlType.dateTime, + data['${effectivePrefix}last_fetched'], + )!, ); } @@ -77,7 +104,9 @@ class IngredientTable extends DataClass implements Insertable { /// The date when the ingredient was last fetched from the server final DateTime lastFetched; + const IngredientTable({required this.id, required this.data, required this.lastFetched}); + @override Map toColumns(bool nullToAbsent) { final map = {}; @@ -88,11 +117,7 @@ class IngredientTable extends DataClass implements Insertable { } IngredientsCompanion toCompanion(bool nullToAbsent) { - return IngredientsCompanion( - id: Value(id), - data: Value(data), - lastFetched: Value(lastFetched), - ); + return IngredientsCompanion(id: Value(id), data: Value(data), lastFetched: Value(lastFetched)); } factory IngredientTable.fromJson(Map json, {ValueSerializer? serializer}) { @@ -103,6 +128,7 @@ class IngredientTable extends DataClass implements Insertable { lastFetched: serializer.fromJson(json['lastFetched']), ); } + @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; @@ -114,10 +140,11 @@ class IngredientTable extends DataClass implements Insertable { } IngredientTable copyWith({int? id, String? data, DateTime? lastFetched}) => IngredientTable( - id: id ?? this.id, - data: data ?? this.data, - lastFetched: lastFetched ?? this.lastFetched, - ); + id: id ?? this.id, + data: data ?? this.data, + lastFetched: lastFetched ?? this.lastFetched, + ); + IngredientTable copyWithCompanion(IngredientsCompanion data) { return IngredientTable( id: data.id.present ? data.id.value : this.id, @@ -138,6 +165,7 @@ class IngredientTable extends DataClass implements Insertable { @override int get hashCode => Object.hash(id, data, lastFetched); + @override bool operator ==(Object other) => identical(this, other) || @@ -152,20 +180,23 @@ class IngredientsCompanion extends UpdateCompanion { final Value data; final Value lastFetched; final Value rowid; + const IngredientsCompanion({ this.id = const Value.absent(), this.data = const Value.absent(), this.lastFetched = const Value.absent(), this.rowid = const Value.absent(), }); + IngredientsCompanion.insert({ required int id, required String data, required DateTime lastFetched, this.rowid = const Value.absent(), - }) : id = Value(id), - data = Value(data), - lastFetched = Value(lastFetched); + }) : id = Value(id), + data = Value(data), + lastFetched = Value(lastFetched); + static Insertable custom({ Expression? id, Expression? data, @@ -180,8 +211,12 @@ class IngredientsCompanion extends UpdateCompanion { }); } - IngredientsCompanion copyWith( - {Value? id, Value? data, Value? lastFetched, Value? rowid}) { + IngredientsCompanion copyWith({ + Value? id, + Value? data, + Value? lastFetched, + Value? rowid, + }) { return IngredientsCompanion( id: id ?? this.id, data: data ?? this.data, @@ -222,27 +257,32 @@ class IngredientsCompanion extends UpdateCompanion { abstract class _$IngredientDatabase extends GeneratedDatabase { _$IngredientDatabase(QueryExecutor e) : super(e); + $IngredientDatabaseManager get managers => $IngredientDatabaseManager(this); late final $IngredientsTable ingredients = $IngredientsTable(this); + @override Iterable> get allTables => allSchemaEntities.whereType>(); + @override List get allSchemaEntities => [ingredients]; } -typedef $$IngredientsTableCreateCompanionBuilder = IngredientsCompanion Function({ - required int id, - required String data, - required DateTime lastFetched, - Value rowid, -}); -typedef $$IngredientsTableUpdateCompanionBuilder = IngredientsCompanion Function({ - Value id, - Value data, - Value lastFetched, - Value rowid, -}); +typedef $$IngredientsTableCreateCompanionBuilder = + IngredientsCompanion Function({ + required int id, + required String data, + required DateTime lastFetched, + Value rowid, + }); +typedef $$IngredientsTableUpdateCompanionBuilder = + IngredientsCompanion Function({ + Value id, + Value data, + Value lastFetched, + Value rowid, + }); class $$IngredientsTableFilterComposer extends Composer<_$IngredientDatabase, $IngredientsTable> { $$IngredientsTableFilterComposer({ @@ -252,6 +292,7 @@ class $$IngredientsTableFilterComposer extends Composer<_$IngredientDatabase, $I super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); @@ -270,6 +311,7 @@ class $$IngredientsTableOrderingComposer extends Composer<_$IngredientDatabase, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); @@ -289,6 +331,7 @@ class $$IngredientsTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get data => @@ -298,72 +341,80 @@ class $$IngredientsTableAnnotationComposer $composableBuilder(column: $table.lastFetched, builder: (column) => column); } -class $$IngredientsTableTableManager extends RootTableManager< - _$IngredientDatabase, - $IngredientsTable, - IngredientTable, - $$IngredientsTableFilterComposer, - $$IngredientsTableOrderingComposer, - $$IngredientsTableAnnotationComposer, - $$IngredientsTableCreateCompanionBuilder, - $$IngredientsTableUpdateCompanionBuilder, - (IngredientTable, BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>), - IngredientTable, - PrefetchHooks Function()> { +class $$IngredientsTableTableManager + extends + RootTableManager< + _$IngredientDatabase, + $IngredientsTable, + IngredientTable, + $$IngredientsTableFilterComposer, + $$IngredientsTableOrderingComposer, + $$IngredientsTableAnnotationComposer, + $$IngredientsTableCreateCompanionBuilder, + $$IngredientsTableUpdateCompanionBuilder, + ( + IngredientTable, + BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>, + ), + IngredientTable, + PrefetchHooks Function() + > { $$IngredientsTableTableManager(_$IngredientDatabase db, $IngredientsTable table) - : super(TableManagerState( + : super( + TableManagerState( db: db, table: table, createFilteringComposer: () => $$IngredientsTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$IngredientsTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$IngredientsTableAnnotationComposer($db: db, $table: table), - updateCompanionCallback: ({ - Value id = const Value.absent(), - Value data = const Value.absent(), - Value lastFetched = const Value.absent(), - Value rowid = const Value.absent(), - }) => - IngredientsCompanion( - id: id, - data: data, - lastFetched: lastFetched, - rowid: rowid, - ), - createCompanionCallback: ({ - required int id, - required String data, - required DateTime lastFetched, - Value rowid = const Value.absent(), - }) => - IngredientsCompanion.insert( - id: id, - data: data, - lastFetched: lastFetched, - rowid: rowid, - ), + updateCompanionCallback: + ({ + Value id = const Value.absent(), + Value data = const Value.absent(), + Value lastFetched = const Value.absent(), + Value rowid = const Value.absent(), + }) => + IngredientsCompanion(id: id, data: data, lastFetched: lastFetched, rowid: rowid), + createCompanionCallback: + ({ + required int id, + required String data, + required DateTime lastFetched, + Value rowid = const Value.absent(), + }) => IngredientsCompanion.insert( + id: id, + data: data, + lastFetched: lastFetched, + rowid: rowid, + ), withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, - )); + ), + ); } -typedef $$IngredientsTableProcessedTableManager = ProcessedTableManager< - _$IngredientDatabase, - $IngredientsTable, - IngredientTable, - $$IngredientsTableFilterComposer, - $$IngredientsTableOrderingComposer, - $$IngredientsTableAnnotationComposer, - $$IngredientsTableCreateCompanionBuilder, - $$IngredientsTableUpdateCompanionBuilder, - (IngredientTable, BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>), - IngredientTable, - PrefetchHooks Function()>; +typedef $$IngredientsTableProcessedTableManager = + ProcessedTableManager< + _$IngredientDatabase, + $IngredientsTable, + IngredientTable, + $$IngredientsTableFilterComposer, + $$IngredientsTableOrderingComposer, + $$IngredientsTableAnnotationComposer, + $$IngredientsTableCreateCompanionBuilder, + $$IngredientsTableUpdateCompanionBuilder, + (IngredientTable, BaseReferences<_$IngredientDatabase, $IngredientsTable, IngredientTable>), + IngredientTable, + PrefetchHooks Function() + >; class $IngredientDatabaseManager { final _$IngredientDatabase _db; + $IngredientDatabaseManager(this._db); + $$IngredientsTableTableManager get ingredients => $$IngredientsTableTableManager(_db, _db.ingredients); } diff --git a/lib/helpers/consts.dart b/lib/helpers/consts.dart index 52ca907dd..2b976165b 100644 --- a/lib/helpers/consts.dart +++ b/lib/helpers/consts.dart @@ -143,3 +143,6 @@ const String API_RESULTS_PAGE_SIZE = '100'; /// Marker used for identifying interpolated values in a list, e.g. for measurements /// the milliseconds in the entry date are set to this value const INTERPOLATION_MARKER = 123; + +/// Creative Commons license IDs +const CC_BY_SA_4_ID = 2; diff --git a/lib/helpers/errors.dart b/lib/helpers/errors.dart index e6807c020..77d03a0a5 100644 --- a/lib/helpers/errors.dart +++ b/lib/helpers/errors.dart @@ -101,7 +101,8 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext if (error is TimeoutException) { issueTitle = 'Network Timeout'; - issueErrorMessage = 'The connection to the server timed out. Please check your ' + issueErrorMessage = + 'The connection to the server timed out. Please check your ' 'internet connection and try again.'; } else if (error is FlutterErrorDetails) { issueTitle = 'Application Error'; @@ -116,7 +117,7 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext } final String fullStackTrace = stackTrace?.toString() ?? 'No stack trace available.'; - final applicationLogs = InMemoryLogStore().formattedLogs; + final applicationLogs = InMemoryLogStore().getFormattedLogs(); showDialog( context: dialogContext, @@ -127,15 +128,9 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext spacing: 8, mainAxisAlignment: MainAxisAlignment.center, children: [ - Icon( - icon, - color: Theme.of(context).colorScheme.error, - ), + Icon(icon, color: Theme.of(context).colorScheme.error), Expanded( - child: Text( - errorTitle, - style: TextStyle(color: Theme.of(context).colorScheme.error), - ), + child: Text(errorTitle, style: TextStyle(color: Theme.of(context).colorScheme.error)), ), ], ), @@ -150,10 +145,7 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext tilePadding: EdgeInsets.zero, title: Text(i18n.errorViewDetails), children: [ - Text( - issueErrorMessage, - style: const TextStyle(fontWeight: FontWeight.bold), - ), + Text(issueErrorMessage, style: const TextStyle(fontWeight: FontWeight.bold)), Container( alignment: Alignment.topLeft, padding: const EdgeInsets.symmetric(vertical: 8.0), @@ -166,15 +158,13 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext ), ), CopyToClipboardButton( - text: 'Error Title: $issueTitle\n' + text: + 'Error Title: $issueTitle\n' 'Error Message: $issueErrorMessage\n\n' 'Stack Trace:\n$fullStackTrace', ), const SizedBox(height: 8), - Text( - i18n.applicationLogs, - style: const TextStyle(fontWeight: FontWeight.bold), - ), + Text(i18n.applicationLogs, style: const TextStyle(fontWeight: FontWeight.bold)), Container( alignment: Alignment.topLeft, padding: const EdgeInsets.symmetric(vertical: 8.0), @@ -182,10 +172,12 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext child: SingleChildScrollView( child: Column( children: [ - ...applicationLogs.map((entry) => Text( - entry, - style: TextStyle(fontSize: 12.0, color: Colors.grey[700]), - )) + ...applicationLogs.map( + (entry) => Text( + entry, + style: TextStyle(fontSize: 12.0, color: Colors.grey[700]), + ), + ), ], ), ), @@ -215,7 +207,8 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext 'App logs (last ${applicationLogs.length} entries):\n' '```\n$logText\n```', ); - final githubIssueUrl = '$GITHUB_ISSUES_BUG_URL' + final githubIssueUrl = + '$GITHUB_ISSUES_BUG_URL' '&title=$issueTitle' '&description=$description'; final Uri reportUri = Uri.parse(githubIssueUrl); @@ -226,9 +219,9 @@ void showGeneralErrorDialog(dynamic error, StackTrace? stackTrace, {BuildContext if (kDebugMode) { logger.warning('Error launching URL: $e'); } - ScaffoldMessenger.of(context).showSnackBar( - SnackBar(content: Text('Error opening issue tracker: $e')), - ); + ScaffoldMessenger.of( + context, + ).showSnackBar(SnackBar(content: Text('Error opening issue tracker: $e'))); } }, ), @@ -248,10 +241,7 @@ class CopyToClipboardButton extends StatelessWidget { final logger = Logger('CopyToClipboardButton'); final String text; - CopyToClipboardButton({ - required this.text, - super.key, - }); + CopyToClipboardButton({required this.text, super.key}); @override Widget build(BuildContext context) { @@ -265,21 +255,23 @@ class CopyToClipboardButton extends StatelessWidget { tapTargetSize: MaterialTapTargetSize.shrinkWrap, ), onPressed: () { - Clipboard.setData(ClipboardData(text: text)).then((_) { - if (context.mounted) { - ScaffoldMessenger.of(context).showSnackBar( - const SnackBar(content: Text('Details copied to clipboard!')), - ); - } - }).catchError((copyError) { - logger.warning('Error copying to clipboard: $copyError'); + Clipboard.setData(ClipboardData(text: text)) + .then((_) { + if (context.mounted) { + ScaffoldMessenger.of( + context, + ).showSnackBar(const SnackBar(content: Text('Details copied to clipboard!'))); + } + }) + .catchError((copyError) { + logger.warning('Error copying to clipboard: $copyError'); - if (context.mounted) { - ScaffoldMessenger.of(context).showSnackBar( - const SnackBar(content: Text('Could not copy details.')), - ); - } - }); + if (context.mounted) { + ScaffoldMessenger.of( + context, + ).showSnackBar(const SnackBar(content: Text('Could not copy details.'))); + } + }); }, ); } @@ -290,9 +282,7 @@ void showDeleteDialog(BuildContext context, String confirmDeleteName, Log log) a context: context, builder: (BuildContext contextDialog) { return AlertDialog( - content: Text( - AppLocalizations.of(context).confirmDelete(confirmDeleteName), - ), + content: Text(AppLocalizations.of(context).confirmDelete(confirmDeleteName)), actions: [ TextButton( key: const ValueKey('cancel-button'), @@ -387,7 +377,10 @@ List formatApiErrors(List errors, {Color? color}) { for (final error in errors) { errorList.add( - Text(error.key, style: TextStyle(fontWeight: FontWeight.bold, color: textColor)), + Text( + error.key, + style: TextStyle(fontWeight: FontWeight.bold, color: textColor), + ), ); print(error.errorMessages); @@ -408,7 +401,10 @@ List formatTextErrors(List errors, {String? title, Color? color} if (title != null) { errorList.add( - Text(title, style: TextStyle(fontWeight: FontWeight.bold, color: textColor)), + Text( + title, + style: TextStyle(fontWeight: FontWeight.bold, color: textColor), + ), ); } @@ -458,11 +454,7 @@ class GeneralErrorsWidget extends StatelessWidget { child: Column( children: [ Icon(Icons.error_outline, color: Theme.of(context).colorScheme.error), - ...formatTextErrors( - widgets, - title: title, - color: Theme.of(context).colorScheme.error, - ), + ...formatTextErrors(widgets, title: title, color: Theme.of(context).colorScheme.error), ], ), ), diff --git a/lib/helpers/exercises/forms.dart b/lib/helpers/exercises/validators.dart similarity index 75% rename from lib/helpers/exercises/forms.dart rename to lib/helpers/exercises/validators.dart index 33c7ad0d2..2af07d8b3 100644 --- a/lib/helpers/exercises/forms.dart +++ b/lib/helpers/exercises/validators.dart @@ -14,10 +14,17 @@ String? validateName(String? name, BuildContext context) { } if (name.length < MIN_CHARS_NAME || name.length > MAX_CHARS_NAME) { - return AppLocalizations.of(context).enterCharacters( - MIN_CHARS_NAME.toString(), - MAX_CHARS_NAME.toString(), - ); + return AppLocalizations.of( + context, + ).enterCharacters(MIN_CHARS_NAME.toString(), MAX_CHARS_NAME.toString()); + } + + return null; +} + +String? validateAuthorName(String? name, BuildContext context) { + if (name!.isEmpty) { + return AppLocalizations.of(context).enterValue; } return null; diff --git a/lib/helpers/logs.dart b/lib/helpers/logs.dart index 38aea584e..e0dea0322 100644 --- a/lib/helpers/logs.dart +++ b/lib/helpers/logs.dart @@ -41,10 +41,16 @@ class InMemoryLogStore { List get logs => List.unmodifiable(_logs); - List get formattedLogs => _logs - .map((log) => - '${log.time.toIso8601String()} ${log.level.name} [${log.loggerName}] ${log.message}') - .toList(); + List getFormattedLogs({Level? minLevel}) { + final level = minLevel ?? Logger.root.level; + return _logs + .where((log) => log.level >= level) + .map( + (log) => + '${log.time.toIso8601String()} ${log.level.name} [${log.loggerName}] ${log.message}', + ) + .toList(); + } void clear() => _logs.clear(); } diff --git a/lib/helpers/measurements.dart b/lib/helpers/measurements.dart index f3cd5462f..bcde38fb9 100644 --- a/lib/helpers/measurements.dart +++ b/lib/helpers/measurements.dart @@ -25,11 +25,11 @@ extension MeasurementChartEntryListExtensions on List { return where((e) => e.date.isAfter(start) && (end == null || e.date.isBefore(end))).toList(); } -// assures values on the start (and optionally end) dates exist, by interpolating if needed -// this is used for when you are looking at a specific time frame (e.g. for a nutrition plan) -// while gaps in the middle of a chart can be "visually interpolated", it's good to have a clearer -// explicit interpolation for the start and end dates (if needed) -// this also helps with computing delta's across the entire window + // assures values on the start (and optionally end) dates exist, by interpolating if needed + // this is used for when you are looking at a specific time frame (e.g. for a nutrition plan) + // while gaps in the middle of a chart can be "visually interpolated", it's good to have a clearer + // explicit interpolation for the start and end dates (if needed) + // this also helps with computing delta's across the entire window List whereDateWithInterpolation(DateTime start, DateTime? end) { // Make sure our list is sorted by date sort((a, b) => a.date.compareTo(b.date)); @@ -90,7 +90,10 @@ extension MeasurementChartEntryListExtensions on List { // caller needs to make sure that before.date < date < after.date MeasurementChartEntry interpolateBetween( - MeasurementChartEntry before, MeasurementChartEntry after, DateTime date) { + MeasurementChartEntry before, + MeasurementChartEntry after, + DateTime date, +) { final totalDuration = after.date.difference(before.date).inMilliseconds; final startDuration = date.difference(before.date).inMilliseconds; diff --git a/lib/l10n/app_ca.arb b/lib/l10n/app_ca.arb index 94de9b8c7..f327fc766 100644 --- a/lib/l10n/app_ca.arb +++ b/lib/l10n/app_ca.arb @@ -471,6 +471,26 @@ }, "gallery": "Galeria", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat} no és compatible", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "Les imatges {imageFormat} encara no són compatibles.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "addImage": "Afegeix imatge", "@addImage": {}, "dataCopied": "Dades copiades a una nova entrada", diff --git a/lib/l10n/app_cs.arb b/lib/l10n/app_cs.arb index dad35f052..0ec427519 100644 --- a/lib/l10n/app_cs.arb +++ b/lib/l10n/app_cs.arb @@ -508,6 +508,26 @@ "@takePicture": {}, "gallery": "Galerie", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat} není podporován", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "Obrazy {imageFormat} zatím nejsou podporovány.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "productFound": "Produkt nalezen", "@productFound": { "description": "Header label for dialog when product is found with barcode" diff --git a/lib/l10n/app_de.arb b/lib/l10n/app_de.arb index de4efe248..8ece0c7c3 100644 --- a/lib/l10n/app_de.arb +++ b/lib/l10n/app_de.arb @@ -357,6 +357,26 @@ "@addImage": {}, "gallery": "Galerie", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat} wird nicht unterstützt", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "{imageFormat}-Bilder werden noch nicht unterstützt.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "chooseFromLibrary": "Wähle aus der Bibliothek", "@chooseFromLibrary": {}, "takePicture": "Bild aufnehmen", @@ -731,7 +751,7 @@ }, "aboutDonateTitle": "Mach eine Spende", "@aboutDonateTitle": {}, - "aboutDonateText": "Das Projekt ist kostenlos und wird es auch bleiben, der Betrieb des Servers hingegen nicht! Die Entwicklung erfordert zudem viel Zeit und Mühe von Freiwilligen. Ihr Beitrag deckt diese Kosten direkt und trägt zur Zuverlässigkeit des Dienstes bei.", + "aboutDonateText": "Das Projekt ist kostenlos und wird es auch bleiben, der Betrieb des Servers hingegen ist es nicht! Die Entwicklung erfordert zudem viel Zeit und Mühe von Freiwilligen. Ihr Beitrag deckt diese Kosten direkt und trägt zur Zuverlässigkeit des Dienstes bei.", "@aboutDonateText": {}, "settingsCacheTitle": "Zwischenspeicher", "@settingsCacheTitle": {}, @@ -930,7 +950,7 @@ "@simpleModeHelp": {}, "isRestDayHelp": "Bitte beachten Sie, dass alle Sätze und Übungen entfernt werden, wenn Sie einen Tag als Ruhetag markieren.", "@isRestDayHelp": {}, - "needsLogsToAdvance": "Benötigt Eintrag, um fortzufahren", + "needsLogsToAdvance": "Benötigt Logeinträge, um fortzufahren", "@needsLogsToAdvance": {}, "needsLogsToAdvanceHelp": "Wählen Sie aus, ob die Routine nur dann zum nächsten geplanten Tag fortgesetzt werden soll, wenn Sie für diesen Tag ein Training protokolliert haben", "@needsLogsToAdvanceHelp": {}, diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 9133f4ab0..b4f2f3721 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -155,8 +155,26 @@ "@category": { "description": "Category for an exercise, ingredient, etc." }, - "endDate": "End date", "startDate": "Start date", + "@startDate": { + "description": "The start date of a nutritional plan or routine" + }, + "dayTypeCustom": "Custom", + "dayTypeEnom": "Every minute on the minute", + "dayTypeAmrap": "As many rounds as possible", + "dayTypeHiit": "High intensity interval training", + "dayTypeTabata": "Tabata", + "dayTypeEdt": "Escalating density training", + "dayTypeRft": "Rounds for time", + "dayTypeAfap": "As fast as possible", + "slotEntryTypeNormal": "Normal", + "slotEntryTypeDropset": "Dropset", + "slotEntryTypeMyo": "Myo", + "slotEntryTypePartial": "Partial", + "slotEntryTypeForced": "Forced", + "slotEntryTypeTut": "Time under Tension", + "slotEntryTypeIso": "Isometric hold", + "slotEntryTypeJump": "Jump", "routines": "Routines", "newRoutine": "New routine", "noRoutines": "You have no routines", @@ -387,13 +405,9 @@ "@date": { "description": "The date of a workout log or body weight entry" }, - "creationDate": "Start date", - "@creationDate": { - "description": "The Start date of a nutritional plan" - }, "endDate": "End date", "@endDate": { - "description": "The End date of a nutritional plan" + "description": "The End date of a nutritional plan or routine" }, "openEnded": "Open ended", "@openEnded": { @@ -719,89 +733,87 @@ } } }, -"scanBarcode": "Scan barcode", -"@scanBarcode": { - "description": "Label for scan barcode button" -}, -"close": "Close", -"@close": { - "description": "Translation for close" -}, -"identicalExercisePleaseDiscard": "If you notice an exercise that is identical to the one you're adding, please discard your draft and edit that exercise instead.", -"checkInformationBeforeSubmitting": "Please check that the information you entered is correct before submitting the exercise", -"add_exercise_image_license": "Images must be compatible with the CC BY SA license. If in doubt, upload only photos you've taken yourself.", -"imageDetailsTitle": "Image details", -"@imageDetailsTitle": { - "description": "Title for image details form" -}, -"imageDetailsLicenseTitle": "Title", -"@imageDetailsLicenseTitle": { - "description": "Label for image title field" -}, -"imageDetailsLicenseTitleHint": "Enter image title", -"@imageDetailsLicenseTitleHint": { - "description": "Hint text for image title field" -}, -"imageDetailsSourceLink": "Link to the source website, if available", -"@imageDetailsSourceLink": { - "description": "Label for source link field" -}, -"imageDetailsSourceLinkHint": "https://example.com", -"@imageDetailsSourceLinkHint": { - "description": "Hint text for source link field" -}, -"imageDetailsAuthor": "Author(s)", -"@imageDetailsAuthor": { - "description": "Label for author field" -}, -"imageDetailsAuthorHint": "Enter author name", -"@imageDetailsAuthorHint": { - "description": "Hint text for author field" -}, -"imageDetailsAuthorLink": "Link to author website or profile, if available", -"@imageDetailsAuthorLink": { - "description": "Label for author link field" -}, -"imageDetailsAuthorLinkHint": "https://example.com/author", -"@imageDetailsAuthorLinkHint": { - "description": "Hint text for author link field" -}, -"imageDetailsDerivativeSource": "Link to the original source, if this is a derivative work", -"@imageDetailsDerivativeSource": { - "description": "Label for derivative source field" -}, -"imageDetailsDerivativeSourceHint": "https://example.com/original", -"@imageDetailsDerivativeSourceHint": { - "description": "Hint text for derivative source field" -}, -"imageDetailsDerivativeHelp": "A derivative work is based on a previous work but contains sufficient new, creative content to entitle it to its own copyright.", -"@imageDetailsDerivativeHelp": { - "description": "Helper text explaining derivative works" -}, -"imageDetailsImageType": "Image Type", -"@imageDetailsImageType": { - "description": "Label for image type selector" -}, -"imageDetailsLicenseNoticePrefix": "By submitting this image, you agree to release it under the ", -"@imageDetailsLicenseNoticePrefix": { - "description": "First part of license notice text" -}, -"imageDetailsLicenseNoticeSuffix": " The image must be either your own work or the author must have released it under a license compatible with CC BY-SA 4.0.", -"@imageDetailsLicenseNoticeSuffix": { - "description": "Second part of license notice text" -}, -"imageDetailsCancel": "CANCEL", -"@imageDetailsCancel": { - "description": "Cancel button text" -}, -"imageDetailsAdd": "ADD", -"@imageDetailsAdd": { - "description": "Add button text" -}, -"variations": "Variations", -"@variations": { - "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" -}, + "scanBarcode": "Scan barcode", + "@scanBarcode": { + "description": "Label for scan barcode button" + }, + "close": "Close", + "@close": { + "description": "Translation for close" + }, + "identicalExercisePleaseDiscard": "If you notice an exercise that is identical to the one you're adding, please discard your draft and edit that exercise instead.", + "checkInformationBeforeSubmitting": "Please check that the information you entered is correct before submitting the exercise", + "add_exercise_image_license": "Images must be compatible with the CC BY SA license. If in doubt, upload only photos you've taken yourself.", + "imageDetailsTitle": "Image details", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Title", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Enter image title", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Link to the source website", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Author(s)", + "@Author": { + "description": "Label for author field" + }, + "authorHint": "Enter author name", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Link to author website or profile", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Link to the original source, if this is a derivative work", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "A derivative work is based on a previous work but contains sufficient new, creative content to entitle it to its own copyright.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Image Type", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "By submitting this image, you agree to release it under the CC-BY-SA-4. The image must be either your own work or the author must have released it under a license compatible with it.", + "imageDetailsLicenseNoticeLinkToLicense": "See license text.", + "imageFormatNotSupported": "{imageFormat} not supported", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "{imageFormat} images are not supported yet.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "add": "add", + "@add": { + "description": "Add button text" + }, + "variations": "Variations", + "@variations": { + "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" + }, "alsoKnownAs": "Also known as: {aliases}", "@alsoKnownAs": { "placeholders": { @@ -1051,8 +1063,9 @@ "@indicatorAvg": { "description": "added for localization of Class Indicator's field text" }, + "endWorkout": "End Workout", "themeMode": "Theme mode", "darkMode": "Always dark mode", "lightMode": "Always light mode", "systemMode": "System settings" -} \ No newline at end of file +} diff --git a/lib/l10n/app_es.arb b/lib/l10n/app_es.arb index 908c1a460..395cd1e2f 100644 --- a/lib/l10n/app_es.arb +++ b/lib/l10n/app_es.arb @@ -344,6 +344,26 @@ "@addImage": {}, "gallery": "Galería", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat} no compatible", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "Las imágenes {imageFormat} aún no son compatibles.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "chooseFromLibrary": "Elije de la biblioteca de fotos", "@chooseFromLibrary": {}, "takePicture": "Toma una foto", @@ -1016,5 +1036,83 @@ "setHasProgressionWarning": "Tenga en cuenta que, por el momento, no es posible editar todos los ajustes de un set en la aplicación móvil ni configurar la progresión automática. Por ahora, utilice la aplicación web.", "@setHasProgressionWarning": {}, "applicationLogs": "Registro de la aplicación", - "@applicationLogs": {} + "@applicationLogs": {}, + "creationDate": "Fecha de comienzo", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Indefinido", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Descripción general", + "@overview": {}, + "identicalExercisePleaseDiscard": "Si observa un ejercicio idéntico al que está agregando, descarte el borrador y edítelo en su lugar.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Por favor verifique que la información que ingresó sea correcta antes de enviar el ejercicio", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Detalles de la imagen", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Título", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Introduce el título de la imagen", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Enlace al sitio web de origen", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Autor(es)", + "@author": {}, + "authorHint": "Introduce el nombre del autor", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Enlace al sitio web o perfil del autor", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Enlace a la fuente original, si se trata de un trabajo derivado", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Un trabajo derivado se basa en un trabajo anterior, pero contiene suficiente contenido nuevo y creativo para darle derecho a sus propios derechos de autor.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Tipo de imagen", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Al enviar esta imagen, acepta divulgarla según la licencia CC-BY-SA-4. La imagen debe ser obra propia o el autor debe haberla publicado bajo una licencia compatible con ella.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Ver texto de licencia.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "add": "agregar", + "@add": { + "description": "Add button text" + }, + "enterTextInLanguage": "¡Por favor ingrese el texto en el idioma correcto!", + "@enterTextInLanguage": {}, + "galleryImageTypeNotSupported": "Las imágenes {imageType} actualmente no son compatibles con esta plataforma.", + "@galleryImageTypeNotSupported": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "galleryImageTypeNotSupportedDetail": "Esta imagen está en formato {imageType}, que actualmente no es compatible con esta plataforma.", + "@galleryImageTypeNotSupportedDetail": { + "placeholders": { + "imageType": { + "type": "String" + } + } + } } diff --git a/lib/l10n/app_fa.arb b/lib/l10n/app_fa.arb index 0967ef424..76a193f7f 100644 --- a/lib/l10n/app_fa.arb +++ b/lib/l10n/app_fa.arb @@ -1 +1,389 @@ -{} +{ + "userProfile": "پروفایل شما", + "@userProfile": {}, + "login": "ورود", + "@login": { + "description": "Text for login button" + }, + "logout": "خروج", + "@logout": { + "description": "Text for logout button" + }, + "date": "تاریخ", + "@date": { + "description": "The date of a workout log or body weight entry" + }, + "register": "ثبت نام", + "@register": { + "description": "Text for registration button" + }, + "useDefaultServer": "استفاده از سرور پیش فرض", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "useCustomServer": "استفاده از سرور سفارشی (خصوصی)", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "edit": "ویرایش", + "@edit": {}, + "invalidUrl": "لطفا یک لینک معتبر وارد کنید", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "usernameValidChars": "نام کاربری فقط میتواند شامل حروف انگلیسی، اعداد انگلیسی و این کاراکتر ها @ + . - _ باشد", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "delete": "حذف", + "@delete": {}, + "passwordsDontMatch": "رمزهای عبور مطابقت ندارند", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "رمز عبور خیلی کوتاه است", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "بشقاب‌های غذایی موجود را انتخاب کنید", + "@selectAvailablePlates": {}, + "close": "بستن", + "@close": { + "description": "Translation for close" + }, + "difference": "تفاوت", + "@difference": {}, + "useColors": "استفاده از رنگ ها", + "@useColors": {}, + "password": "رمزعبور", + "@password": {}, + "confirmPassword": "تأیید رمز عبور", + "@confirmPassword": {}, + "invalidEmail": "لطفا یک آدرس ایمیل معتبر وارد کنید", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "email": "آدرس ایمیل", + "@email": {}, + "username": "نام کاربری", + "@username": {}, + "invalidUsername": "لطفا یک نام کاربری معتبر وارد کنید", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "start": "شروع", + "@start": { + "description": "Label on button to start the gym mode (i.e., an imperative)" + }, + "useApiToken": "استفاده از توکن API", + "@useApiToken": {}, + "useUsernameAndPassword": "استفاده از نام کاربری و رمز عبور", + "@useUsernameAndPassword": {}, + "comment": "نظر", + "@comment": { + "description": "Comment, additional information" + }, + "apiToken": "توکن API", + "@apiToken": {}, + "invalidApiToken": "لطفا یک کلید API معتبر وارد کنید", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "یک کلید API می‌تواند فقط شامل حروف انگلیسی a تا f، اعداد انگلیسی 0 تا 9 و دقیقاً 40 کاراکتر باشد", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerUrl": "آدرس اینترنتی (URL) به منبع WGER", + "@customServerUrl": { + "description": "Label in the form where the users can enter their own wger instance" + }, + "customServerHint": "آدرس سرور خودتان را وارد کنید، در غیر این صورت آدرس پیش‌فرض استفاده خواهد شد", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "reset": "تنظیم مجدد", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "حساب کاربری ندارید؟ همین حالا ثبت نام کنید", + "@registerInstead": {}, + "loginInstead": "حساب کاربری دارید؟ وارد شوید", + "@loginInstead": {}, + "nutritionalPlan": "برنامه غذایی", + "@nutritionalPlan": {}, + "labelBottomNavWorkout": "تمرین ورزشی", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "تغذیه", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "گزارش تمرینات", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "برنامه تمرین ورزشی", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "labelDashboard": "داشبورد", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "success": "موفقیت", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "successfullyDeleted": "حذف شده", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "successfullySaved": "ذخیره شده", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "notes": "یادداشت‌ها", + "@notes": { + "description": "Personal notes, e.g. for a workout session" + }, + "exerciseList": "لیست تمرینات", + "@exerciseList": {}, + "value": "مقدار", + "@value": { + "description": "The value of a measurement entry" + }, + "newDay": "روز جدید", + "@newDay": {}, + "newSet": "مجموعه جدید", + "@newSet": { + "description": "Header when adding a new set to a workout day" + }, + "selectExercises": "اگر می‌خواهید مجموعه ای از حرکات را انجام دهید، می‌توانید چندین تمرین را جستجو کنید، آنها در یک گروه قرار می‌گیرند", + "@selectExercises": {}, + "gymMode": "حالت باشگاه", + "@gymMode": { + "description": "Label when starting the gym mode" + }, + "plateCalculator": "دیسک ها", + "@plateCalculator": { + "description": "Label used for the plate calculator in the gym mode" + }, + "plateCalculatorNotDivisible": "با دیسک های موجود نمی‌توان به وزن دلخواه رسید", + "@plateCalculatorNotDivisible": { + "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" + }, + "pause": "توقف", + "@pause": { + "description": "Noun, not an imperative! Label used for the pause when using the gym mode" + }, + "jumpTo": "برو به", + "@jumpTo": { + "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" + }, + "todaysWorkout": "تمرین ورزشی امروز شما", + "@todaysWorkout": {}, + "logHelpEntries": "اگر در یک روز واحد بیش از یک ورودی با همان تعداد تکرارها وجود داشته باشد ، اما وزنهای مختلف ، فقط ورودی با وزن بالاتر در نمودار نشان داده می شود.", + "@logHelpEntries": {}, + "logHelpEntriesUnits": "توجه داشته باشید که فقط ورودی هایی با واحد وزنی (کیلوگرم یا پوند) و تکرارها نمودار می شوند ، ترکیبات دیگری مانند زمان یا تا زمان خستگی در اینجا نادیده گرفته می شوند.", + "@logHelpEntriesUnits": {}, + "description": "توضیحات", + "@description": {}, + "name": "نام", + "@name": { + "description": "Name for a workout or nutritional plan" + }, + "save": "ذخیره", + "@save": {}, + "verify": "تأیید کردن", + "@verify": {}, + "addSet": "افزودن مجموعه", + "@addSet": { + "description": "Label for the button that adds a set (to a workout day)" + }, + "addMeal": "افزودن وعده", + "@addMeal": {}, + "mealLogged": "غذا به دفتر گزارشات وارد شد", + "@mealLogged": {}, + "ingredientLogged": "مواد به دفتر گزارشات وارد شد", + "@ingredientLogged": {}, + "logMeal": "افزودن وعده به دفتر گزارشات غذایی", + "@logMeal": {}, + "addIngredient": "افزودن مواد تشکیل دهنده", + "@addIngredient": {}, + "logIngredient": "افزودن مواد تشکیل دهنده به دفتر گزارشات غذایی", + "@logIngredient": {}, + "searchIngredient": "جستجو مواد تشکیل دهنده", + "@searchIngredient": { + "description": "Label on ingredient search form" + }, + "nutritionalDiary": "دفتر گزارشات غذایی", + "@nutritionalDiary": {}, + "nutritionalPlans": "برنامه های غذایی", + "@nutritionalPlans": {}, + "noNutritionalPlans": "شما هیچ برنامه غذایی ندارید", + "@noNutritionalPlans": { + "description": "Message shown when the user has no nutritional plans" + }, + "onlyLogging": "فقط کالری را شمارش کردن", + "@onlyLogging": {}, + "onlyLoggingHelpText": "اگر فقط می خواهید کالری خود را گزارش کنید و نمی خواهید یک برنامه غذایی دقیق را با وعده های غذایی خاص تنظیم کنید ، کادر را تیک بزنید", + "@onlyLoggingHelpText": {}, + "goalMacro": "اهداف مواد مغذی", + "@goalMacro": { + "description": "The goal for macronutrients" + }, + "selectMealToLog": "یک وعده انتخاب کنید تا به گزارشات اضافه شود", + "@selectMealToLog": {}, + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "در برنامه غذایی فعلی شما هیچ وعده ای تعریف نشده است", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "برای افزودن وعده های غذایی به برنامه ، به جزئیات برنامه غذایی بروید", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "goalEnergy": "هدف انرژی", + "@goalEnergy": {}, + "goalProtein": "هدف پروتئینی", + "@goalProtein": {}, + "goalCarbohydrates": "هدف کربوهیدراتی", + "@goalCarbohydrates": {}, + "goalFat": "هدف چربی", + "@goalFat": {}, + "goalFiber": "هدف فیبری", + "@goalFiber": {}, + "anErrorOccurred": "خطایی رخ داد!", + "@anErrorOccurred": {}, + "errorInfoDescription": "متأسفیم ، اما مشکلی پیش آمد. شما می توانید با گزارش آن در GitHub به ما در رفع این مشکل کمک کنید.", + "@errorInfoDescription": {}, + "errorInfoDescription2": "شما می توانید به استفاده از برنامه ادامه دهید ، اما برخی از ویژگی ها ممکن است کار نکند.", + "@errorInfoDescription2": {}, + "errorViewDetails": "جزئیات فنی", + "@errorViewDetails": {}, + "applicationLogs": "گزارشات اپلیکیشن", + "@applicationLogs": {}, + "errorCouldNotConnectToServer": "اتصال به سرور امکان پذیر نیست", + "@errorCouldNotConnectToServer": {}, + "errorCouldNotConnectToServerDetails": "برنامه نمی تواند به سرور وصل شود. لطفاً اتصال اینترنت یا URL سرور خود را بررسی کرده و دوباره امتحان کنید. اگر مشکل ادامه پیدا کرد، با مدیر سرور تماس بگیرید.", + "@errorCouldNotConnectToServerDetails": {}, + "copyToClipboard": "کپی در کلیپ بورد", + "@copyToClipboard": {}, + "weight": "وزن", + "@weight": { + "description": "The weight of a workout log or body weight entry" + }, + "min": "حداقل", + "@min": {}, + "max": "حداکثر", + "@max": {}, + "chartAllTimeTitle": "نمودار کلی {name}", + "@chartAllTimeTitle": { + "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chart30DaysTitle": "نمودار 30 روزه {name}", + "@chart30DaysTitle": { + "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chartDuringPlanTitle": "نمودار {chartName} در برنامه {planName}", + "@chartDuringPlanTitle": { + "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", + "type": "text", + "placeholders": { + "chartName": { + "type": "String" + }, + "planName": { + "type": "String" + } + } + }, + "measurement": "اندازه گیری", + "@measurement": {}, + "measurements": "اندازه گیری ها", + "@measurements": { + "description": "Categories for the measurements such as biceps size, body fat, etc." + }, + "measurementCategoriesHelpText": "دسته اندازه گیری ، مانند \"دوسر\" یا \"چربی بدن\"", + "@measurementCategoriesHelpText": {}, + "measurementEntriesHelpText": "واحد مورد استفاده برای اندازه گیری دسته مانند \"سانتی متر\" یا \"٪\"", + "@measurementEntriesHelpText": {}, + "creationDate": "تاریخ شروع", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "endDate": "تاریخ پایان", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "openEnded": "پایان باز", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "time": "زمان", + "@time": { + "description": "The time of a meal or workout" + }, + "timeStart": "زمان شروع", + "@timeStart": { + "description": "The starting time of a workout" + }, + "timeEnd": "زمان پایان", + "@timeEnd": { + "description": "The end time of a workout" + }, + "timeStartAhead": "زمان شروع نمیتواند جلوتر از زمان پایان باشد", + "@timeStartAhead": {}, + "ingredient": "مواد تشکیل دهنده", + "@ingredient": {}, + "energy": "انرژی", + "@energy": { + "description": "Energy in a meal, ingredient etc. e.g. in kJ" + }, + "barWeight": "وزن میله", + "@barWeight": {}, + "exercise": "تمرین", + "@exercise": { + "description": "An exercise for a workout" + }, + "unit": "واحد", + "@unit": { + "description": "The unit used for a repetition (kg, time, etc.)" + }, + "exercises": "تمرین ها", + "@exercises": { + "description": "Multiple exercises for a workout" + }, + "exerciseName": "نام تمرین", + "@exerciseName": { + "description": "Label for the name of a workout exercise" + }, + "searchExercise": "تمرین را برای افزودن جستجو کنید", + "@searchExercise": { + "description": "Label on set form. Selected exercises are added to the set" + }, + "noIngredientsDefined": "هنوز هیچ مواد تشکیل دهنده ای تعریف نشده", + "@noIngredientsDefined": {}, + "noMatchingExerciseFound": "هیچ تمرین مطابقی پیدا نشد", + "@noMatchingExerciseFound": { + "description": "Message returned if no exercises match the searched string" + }, + "searchNamesInEnglish": "اسامی را به زبان انگلیسی هم جستجو کنید", + "@searchNamesInEnglish": {}, + "equipment": "تجهیزات", + "@equipment": { + "description": "Equipment needed to perform an exercise" + } +} diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 6300ff8c3..902d4c582 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -354,6 +354,26 @@ "@addImage": {}, "gallery": "Galerie", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat} non pris en charge", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "{imageFormat} non pris en charge", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "chooseFromLibrary": "Choisir depuis la bibliothèque", "@chooseFromLibrary": {}, "takePicture": "Prendre une photo", @@ -1016,5 +1036,95 @@ "endDate": "Date de fin", "@endDate": {}, "startDate": "Date de début", - "@startDate": {} + "@startDate": {}, + "dayTypeCustom": "Personnalisé", + "@dayTypeCustom": {}, + "dayTypeEnom": "Un mouvement par minute", + "@dayTypeEnom": {}, + "dayTypeAmrap": "Autant de rounds que possible", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Entraînement fractionné de haute intensité", + "@dayTypeHiit": {}, + "dayTypeTabata": "Tabata", + "@dayTypeTabata": {}, + "dayTypeEdt": "Entraînement à densité croissante", + "@dayTypeEdt": {}, + "dayTypeAfap": "Aussi vite que possible", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normal", + "@slotEntryTypeNormal": {}, + "slotEntryTypeDropset": "Dropset", + "@slotEntryTypeDropset": {}, + "slotEntryTypeMyo": "Myo", + "@slotEntryTypeMyo": {}, + "slotEntryTypePartial": "Partiel", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Forcé", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Temps sous tension", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Maintien isométrique", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Saut", + "@slotEntryTypeJump": {}, + "applicationLogs": "Journaux d'application", + "@applicationLogs": {}, + "openEnded": "Sans date de fin", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Aperçu", + "@overview": {}, + "identicalExercisePleaseDiscard": "Si vous remarquez un exercice identique à celui que vous ajoutez, veuillez supprimer votre brouillon et modifier cet exercice à la place.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Veuillez vérifier que les informations que vous avez saisies sont correctes avant de soumettre l'exercice", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Détails de l'image", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "dayTypeRft": "Rounds for time", + "@dayTypeRft": {}, + "imageDetailsLicenseTitle": "Valeur de l'attribut \"title\" de l'image", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Saisir la valeur de l'attribut \"title\" de l'image", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Lien vers le site internet source", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Auteur(s)", + "@author": {}, + "authorHint": "Saisir le nom de l'auteur", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Lien vers le site internet de l'auteur ou de son profil", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Lien vers la source originale, s'il s'agit d'une œuvre dérivée", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Une œuvre dérivée est basée sur une œuvre antérieure mais contient suffisamment de contenu nouveau et créatif pour lui donner droit à son propre droit d’auteur.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Type de l'image", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "En soumettant cette image, vous acceptez sa publication sous licence CC-BY-SA-4. L'image doit être votre propre création ou son auteur doit l'avoir publiée sous une licence compatible.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Voir le texte de la licence.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "enterTextInLanguage": "Veuillez saisir le texte dans la bonne langue !", + "@enterTextInLanguage": {}, + "endWorkout": "Terminer l'entraînement", + "@endWorkout": {} } diff --git a/lib/l10n/app_hr.arb b/lib/l10n/app_hr.arb index 117cd7b03..25368bb60 100644 --- a/lib/l10n/app_hr.arb +++ b/lib/l10n/app_hr.arb @@ -31,15 +31,15 @@ }, "email": "E-mail adresa", "@email": {}, - "invalidUrl": "Upiši važeći URL", + "invalidUrl": "Upiši valjanu URL adresu", "@invalidUrl": { "description": "Error message when the user enters an invalid URL, e.g. in the login form" }, - "useCustomServer": "Koristi prilagođeni poslužitelj", + "useCustomServer": "Koristi prilagođeni server", "@useCustomServer": { "description": "Toggle button allowing users to switch between the default and a custom wger server" }, - "invalidUsername": "Upiši važeće korisničko ime", + "invalidUsername": "Upiši valjano korisničko ime", "@invalidUsername": { "description": "Error message when the user enters an invalid username" }, @@ -47,7 +47,7 @@ "@customServerUrl": { "description": "Label in the form where the users can enter their own wger instance" }, - "customServerHint": "Upiši adresu tvog poslužitelja, inače će se koristiti zadani", + "customServerHint": "Upiši adresu tvog servera, inače će se koristiti standardni", "@customServerHint": { "description": "Hint text for the form where the users can enter their own wger instance" }, @@ -205,7 +205,7 @@ "@selectExercise": { "description": "Error message when the user hasn't selected an exercise in the form" }, - "enterCharacters": "Upiši {min} do {max} znakova", + "enterCharacters": "Upiši između {min} do {max} znaka", "@enterCharacters": { "description": "Error message when the user hasn't entered the correct number of characters in a form", "type": "text", @@ -233,7 +233,7 @@ "description": "Label shown on the slider where the user can toggle showing units and RiR", "type": "text" }, - "enterValidNumber": "Upiši važeći broj", + "enterValidNumber": "Upiši valjani broj", "@enterValidNumber": { "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" }, @@ -261,7 +261,7 @@ "@dataCopied": { "description": "Snackbar message to show on copying data to a new log entry" }, - "usernameValidChars": "Korisničko ime može sadržavati samo slova, brojeve i sljedeće znakove: @, +, ., -, _", + "usernameValidChars": "Korisničko ime smije sadržavati samo slova, brojeve i sljedeće znakove: @, +, ., -, _", "@usernameValidChars": { "description": "Error message when the user tries to register a username with forbidden characters" }, @@ -275,7 +275,7 @@ "@addMeal": {}, "nutritionalPlan": "Plan prehrane", "@nutritionalPlan": {}, - "useDefaultServer": "Koristi zadani poslužitelj", + "useDefaultServer": "Koristi standardni server", "@useDefaultServer": { "description": "Toggle button allowing users to switch between the default and a custom wger server" }, @@ -461,7 +461,7 @@ "@weightUnit": {}, "appUpdateTitle": "Potrebna je nova verzija", "@appUpdateTitle": {}, - "appUpdateContent": "Ova verzija aplikacije nije kompatibilna s poslužiteljem. Aktualiziraj svoju aplikaciju.", + "appUpdateContent": "Ova verzija aplikacije nije kompatibilna sa serverom. Aktualiziraj svoju aplikaciju.", "@appUpdateContent": {}, "set": "Serija", "@set": { @@ -519,7 +519,7 @@ "@close": { "description": "Translation for close" }, - "enterMinCharacters": "Upiši barem {min} znakova", + "enterMinCharacters": "Upiši barem {min} znaka", "@enterMinCharacters": { "description": "Error message when the user hasn't entered the minimum amount characters in a form", "type": "text", @@ -608,7 +608,7 @@ "@verifiedEmail": {}, "unVerifiedEmail": "Nepotvrđena e-mail adresa", "@unVerifiedEmail": {}, - "verifiedEmailInfo": "E-mail poruka za potvrdu je poslana na {email}", + "verifiedEmailInfo": "E-mail za ovjeru je poslan na {email}", "@verifiedEmailInfo": { "placeholders": { "email": { @@ -634,7 +634,7 @@ "@cardio": { "description": "Generated entry for translation for server strings" }, - "quads": "Ekstenzije nogu", + "quads": "Kvadriceps", "@quads": { "description": "Generated entry for translation for server strings" }, @@ -658,7 +658,7 @@ "@until_failure": { "description": "Generated entry for translation for server strings" }, - "none__bodyweight_exercise_": "ništa (vježba za tjelesnu težinu)", + "none__bodyweight_exercise_": "bez (vježba za tjelesnu težinu)", "@none__bodyweight_exercise_": { "description": "Generated entry for translation for server strings" }, @@ -710,7 +710,7 @@ "@kg": { "description": "Generated entry for translation for server strings" }, - "lb": "funta", + "lb": "lb", "@lb": { "description": "Generated entry for translation for server strings" }, @@ -718,7 +718,7 @@ "@searchNamesInEnglish": {}, "language": "Jezik", "@language": {}, - "aboutPageTitle": "Wger informacije", + "aboutPageTitle": "O nama i podrška", "@aboutPageTitle": {}, "abs": "Trbuh", "@abs": { @@ -788,7 +788,7 @@ }, "aboutDonateTitle": "Doniraj", "@aboutDonateTitle": {}, - "aboutDonateText": "Pomogni projektu: kupi nam kavu, plati troškove poslužitelja i potiči nas u našem radu", + "aboutDonateText": "Iako je projekt besplatan i uvijek će to ostati, održavanje servera nije! Razvoj također zahtijeva značajno vrijeme i trud volontera. Tvoj doprinos izravno podupire te troškove i pomaže u održavanju pouzdanosti usluge.", "@aboutDonateText": {}, "settingsTitle": "Postavke", "@settingsTitle": {}, @@ -866,7 +866,7 @@ "@goalMacro": { "description": "The goal for macronutrients" }, - "selectMealToLog": "Odaberi obrok za zapis u dnevnik", + "selectMealToLog": "Odaberi obrok za zapisivanje u dnevnik", "@selectMealToLog": {}, "ingredientLogged": "Sastojak je upisan u dnevnik", "@ingredientLogged": {}, @@ -880,15 +880,15 @@ "@goalTypeMeals": { "description": "added for localization of Class GoalType's filed meals" }, - "goalTypeBasic": "Osnovni", + "goalTypeBasic": "Osnovno", "@goalTypeBasic": { "description": "added for localization of Class GoalType's filed basic" }, - "goalTypeAdvanced": "Napredni", + "goalTypeAdvanced": "Napredno", "@goalTypeAdvanced": { "description": "added for localization of Class GoalType's filed advanced" }, - "indicatorRaw": "sirovo", + "indicatorRaw": "neobrađeno", "@indicatorRaw": { "description": "added for localization of Class Indicator's field text" }, @@ -914,7 +914,7 @@ } } }, - "chartDuringPlanTitle": "{chartName} tijekom prehrambenog plana {planName}", + "chartDuringPlanTitle": "{chartName} tijekom plana prehrane {planName}", "@chartDuringPlanTitle": { "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", "type": "text", @@ -951,24 +951,244 @@ "@useUsernameAndPassword": {}, "apiToken": "API Token", "@apiToken": {}, - "invalidApiToken": "Molimo provjerite API Token", + "invalidApiToken": "Upiši valjani API ključ", "@invalidApiToken": { "description": "Error message when the user enters an invalid API key" }, - "apiTokenValidChars": "API Token može sadržavati a-f, brojeve od 0-9 i mora biti točno 40 znakova dugačak.", + "apiTokenValidChars": "API ključ može sadržati slova a-f, brojke od 0-9 i mora imati točno 40 znakova", "@apiTokenValidChars": { "description": "Error message when the user tries to input a API key with forbidden characters" }, - "routines": "Rutina", + "routines": "Rutine", "@routines": {}, "newRoutine": "Nova rutina", "@newRoutine": {}, - "noRoutines": "Vi nemate rutine", + "noRoutines": "Ti nemaš rutine", "@noRoutines": {}, - "restTime": "Period odmora", + "restTime": "Vrijeme odmora", "@restTime": {}, - "sets": "Vježba ima setova", + "sets": "Serije", "@sets": { "description": "The number of sets to be done for one exercise" - } + }, + "min": "Min.", + "@min": {}, + "max": "Maks.", + "@max": {}, + "dayTypeAfap": "Što brže moguće", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Normalno", + "@slotEntryTypeNormal": {}, + "slotEntryTypePartial": "Djelomično", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Prisiljeno", + "@slotEntryTypeForced": {}, + "aboutTranslationListTitle": "Prevedi aplikaciju", + "@aboutTranslationListTitle": {}, + "aboutSourceListTitle": "Prikaži izvorni kod", + "@aboutSourceListTitle": {}, + "aboutJoinCommunityTitle": "Pridruži se zajednici", + "@aboutJoinCommunityTitle": {}, + "aboutDiscordTitle": "Discord", + "@aboutDiscordTitle": {}, + "others": "Drugi", + "@others": {}, + "resultingRoutine": "Rezultirajuća rutina", + "@resultingRoutine": {}, + "restDay": "Dan odmora", + "@restDay": {}, + "isRestDay": "Je dan odmora", + "@isRestDay": {}, + "progressionRules": "Ova vježba ima pravila napredovanja i ne može se uređivati u mobilnoj aplikaciji. Za uređivanje ove vježbe koristi web aplikaciju.", + "@progressionRules": {}, + "needsLogsToAdvance": "Treba dnevnike za nastavljanje", + "@needsLogsToAdvance": {}, + "slotEntryTypeTut": "Vrijeme pod napetošću", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Izometrijsko držanje", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Skok", + "@slotEntryTypeJump": {}, + "dayTypeCustom": "Prilagođeno", + "@dayTypeCustom": {}, + "dayTypeEnom": "Svake minute u minuti", + "@dayTypeEnom": {}, + "startDate": "Datum početka", + "@startDate": { + "description": "The start date of a nutritional plan or routine" + }, + "dayTypeRft": "Runde za vrijeme", + "@dayTypeRft": {}, + "dayTypeAmrap": "Što više rundi", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Trening visokog intenziteta u intervalima", + "@dayTypeHiit": {}, + "dayTypeTabata": "Tabata", + "@dayTypeTabata": {}, + "simpleMode": "Jednostavni modus", + "@simpleMode": {}, + "dayTypeEdt": "Trening s postupnim povećanjem ponavljanja/serija", + "@dayTypeEdt": {}, + "slotEntryTypeDropset": "Drop set (serije sa smanjivanjem težine)", + "@slotEntryTypeDropset": {}, + "slotEntryTypeMyo": "Myo (intenzivnije aktiviranje mišićnih vlakana)", + "@slotEntryTypeMyo": {}, + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "Tvoj trenutačni plan prehrane nema definirane obroke", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "Za dodavanje obroka u plan, idi na detalje plana prehrane", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "resistance_band": "Elastična vrpca", + "@resistance_band": { + "description": "Generated entry for translation for server strings" + }, + "aboutWhySupportTitle": "Otvoreni kod i besplatno ❤️", + "@aboutWhySupportTitle": {}, + "addSuperset": "Dodaj super-seriju", + "@addSuperset": {}, + "setHasProgression": "Serija ima napredovanje", + "@setHasProgression": {}, + "setHasProgressionWarning": "Imaj na umu da trenutačno nije moguće urediti sve postavke za serije na mobilnoj aplikaciji ili konfigurirati automatsko napredovanje. Za sada koristi web aplikaciju.", + "@setHasProgressionWarning": {}, + "fitInWeek": "Prilagodi u tjedan", + "@fitInWeek": {}, + "fitInWeekHelp": "Ako je aktivirano, dani će se ponavljati u tjednom ciklusu, inače će dani slijediti uzastopno bez obzira na početak novog tjedna.", + "@fitInWeekHelp": {}, + "setHasNoExercises": "Ova serija još nema vježbe!", + "@setHasNoExercises": {}, + "exerciseNr": "Vježba {nr}", + "@exerciseNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "supersetNr": "Super-serija {nr}", + "@supersetNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "isRestDayHelp": "Imaj na umu da će se sve serije i vježbe ukloniti kada označiš dan kao dan odmora.", + "@isRestDayHelp": {}, + "needsLogsToAdvanceHelp": "Odaberi želiš li da se rutina nastavi na sljedeći zakazani dan, samo ako si za taj dan zapisao/la trening", + "@needsLogsToAdvanceHelp": {}, + "routineDays": "Dani u rutini", + "@routineDays": {}, + "errorInfoDescription": "Žao nam je, dogodila se greška. Možeš nam pomoći to popraviti prijavom problema na GitHub-u.", + "@errorInfoDescription": {}, + "errorInfoDescription2": "Možeš nastaviti koristiti aplikaciju, ali neke funkcije možda neće raditi.", + "@errorInfoDescription2": {}, + "errorViewDetails": "Tehnički detalji", + "@errorViewDetails": {}, + "applicationLogs": "Dnevnici aplikacije", + "@applicationLogs": {}, + "errorCouldNotConnectToServer": "Neuspjelo povezivanje sa serverom", + "@errorCouldNotConnectToServer": {}, + "errorCouldNotConnectToServerDetails": "Aplikacija se nije mogla povezati sa serverom. Provjeri internetsku vezu ili URL servera i pokušaj ponovo. Ako problem ne nestane, obrati se administratoru servera.", + "@errorCouldNotConnectToServerDetails": {}, + "copyToClipboard": "Kopiraj u međuspremnik", + "@copyToClipboard": {}, + "endDate": "Datum kraja", + "@endDate": { + "description": "The End date of a nutritional plan or routine" + }, + "openEnded": "Bez datuma kraja", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Pregled", + "@overview": {}, + "aboutContributeTitle": "Doprinesi", + "@aboutContributeTitle": {}, + "aboutContributeText": "Sve vrste doprinosa su dobrodošle. Bilo da si programer, prevoditelj ili jednostavno strastveni ljubitelj fitnessa, svaka podrška je dobrodošla!", + "@aboutContributeText": {}, + "aboutBugsListTitle": "Prijavi problem ili predloži funkciju", + "@aboutBugsListTitle": {}, + "identicalExercisePleaseDiscard": "Ako primijetiš vježbu koja je identična onoj koju dodaješ, odbaci svoju vježbu i umjesto toga uredi tu vježbu.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Provjeri točnost tvojih unesenih podataka prije slanja vježbe", + "@checkInformationBeforeSubmitting": {}, + "imageDetailsTitle": "Detalji slike", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Naslov", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Upiši naslov slike", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Poveznica na izvornu web-stranicu", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "author": "Autori", + "@author": {}, + "authorHint": "Upiši ime autora", + "@authorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Poveznica na web-stranicu ili profil autora", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Poveznica na izvorni izvor, ako je ovo izvedeno djelo", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Izvedeno djelo se temelji na prethodnom djelu, ali sadrži dovoljno novog, kreativnog sadržaja da bi mu se dalo pravo na vlastita autorska prava.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Vrsta slike", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNotice": "Slanjem ove slike pristaješ na njezino objavljivanje pod licencom CC-BY-SA-4. Slika mora biti tvoje vlastito djelo ili ju je autor morao objaviti pod s njom kompatibilnom licencom.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Pogledaj tekst licence.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "imageFormatNotSupported": "{imageFormat} nije podržani format", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "{imageFormat} slike još nisu podržane.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "add": "dodaj", + "@add": { + "description": "Add button text" + }, + "enterTextInLanguage": "Upiši tekst u ispravnom jeziku!", + "@enterTextInLanguage": {}, + "simpleModeHelp": "Sakrij neke naprednije postavke prilikom uređivanja vježbi", + "@simpleModeHelp": {}, + "endWorkout": "Završi trening", + "@endWorkout": {} } diff --git a/lib/l10n/app_it.arb b/lib/l10n/app_it.arb index d45f77f7d..7277acf93 100644 --- a/lib/l10n/app_it.arb +++ b/lib/l10n/app_it.arb @@ -1076,5 +1076,29 @@ "aboutDiscordTitle": "Discord", "@aboutDiscordTitle": {}, "fitInWeek": "Settimana Fit in", - "@fitInWeek": {} + "@fitInWeek": {}, + "creationDate": "Data di inizio", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Senza fine", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Panoramica", + "@overview": {}, + "identicalExercisePleaseDiscard": "Se trovate un esercizio identico a quello che state cercando di aggiungere, per favore scartate la vostra bozza e se necessario modificate l'esercizio esistente.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Verificate che le informazioni siano corrette prima di aggiungere l'esercizio", + "@checkInformationBeforeSubmitting": {}, + "enterTextInLanguage": "Aggiungete il testo usando la lingua giusta!", + "@enterTextInLanguage": {}, + "applicationLogs": "Registri dell'applicazione", + "@applicationLogs": {}, + "dayTypeCustom": "Personalizzato", + "@dayTypeCustom": {}, + "dayTypeAfap": "Più velocemente possibile", + "@dayTypeAfap": {}, + "dayTypeHiit": "Allenamento a intervalli ad alta intensità", + "@dayTypeHiit": {} } diff --git a/lib/l10n/app_ja.arb b/lib/l10n/app_ja.arb index 4348b5acc..7f6ddf35b 100644 --- a/lib/l10n/app_ja.arb +++ b/lib/l10n/app_ja.arb @@ -473,6 +473,26 @@ "@chooseFromLibrary": {}, "gallery": "Gallery", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat}はサポートされていません", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "{imageFormat}形式の画像はまだサポートされていません。", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "addImage": "Add image", "@addImage": {}, "dataCopied": "Data copied to new entry", diff --git a/lib/l10n/app_pt.arb b/lib/l10n/app_pt.arb index 26297cb36..86bf31714 100644 --- a/lib/l10n/app_pt.arb +++ b/lib/l10n/app_pt.arb @@ -666,13 +666,13 @@ "@add_exercise_image_license": {}, "selectEntry": "Por favor selecione uma entrada", "@selectEntry": {}, - "cacheWarning": "Devido ao caching, pode levar algum tempo até que as alterações sejam visíveis em todo o aplicativo.", + "cacheWarning": "Devido ao \"caching\", pode levar algum tempo até que as alterações sejam visíveis em todo o aplicativo.", "@cacheWarning": {}, "success": "Sucesso", "@success": { "description": "Message when an action completed successfully, usually used as a heading" }, - "contributeExerciseWarning": "Você só pode contribuir com exercícios se sua conta tiver mais de {days} dias e tiver verificado seu e-mail", + "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e tiveres verificado o teu e-mail", "@contributeExerciseWarning": { "description": "Number of days before which a person can add exercise", "placeholders": { @@ -722,13 +722,13 @@ }, "settingsCacheTitle": "Cache", "@settingsCacheTitle": {}, - "settingsExerciseCacheDescription": "Cache do exercício", + "settingsExerciseCacheDescription": "Arquivo de exercícios", "@settingsExerciseCacheDescription": {}, "useMetric": "Use unidades métricas para o peso corpora", "@useMetric": {}, "settingsTitle": "Configurações", "@settingsTitle": {}, - "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", + "settingsCacheDeletedSnackbar": "Cache limpa com sucesso", "@settingsCacheDeletedSnackbar": {}, "log": "Log", "@log": { @@ -861,7 +861,7 @@ "@goalTypeAdvanced": { "description": "added for localization of Class GoalType's filed advanced" }, - "indicatorRaw": "Crua", + "indicatorRaw": "Crú", "@indicatorRaw": { "description": "added for localization of Class Indicator's field text" }, @@ -877,7 +877,7 @@ "@themeMode": {}, "darkMode": "Modo sempre escuro", "@darkMode": {}, - "settingsIngredientCacheDescription": "Princípio de cache", + "settingsIngredientCacheDescription": "Arquivo de ingredientes", "@settingsIngredientCacheDescription": {}, "routines": "Rotinas", "@routines": {}, @@ -981,7 +981,7 @@ "@setHasProgression": {}, "simpleMode": "Modo simples", "@simpleMode": {}, - "progressionRules": "Este exercíco tem regras de progressão e não pode ser editado na aplicação móvel. Por favor, usa a aplicação web para editar este exercício.", + "progressionRules": "Este exercício tem regras de progressão e não pode ser editado na aplicação móvel. Por favor, usa a aplicação web para editar este exercício.", "@progressionRules": {}, "selectAvailablePlates": "Seleciona anilhas disponíveis", "@selectAvailablePlates": {}, @@ -1010,5 +1010,27 @@ "setHasProgressionWarning": "Por favor, nota que, de momento, não é possível editar todos os valores para uma série na aplicação móvel ou configurar a progressão automática. Por agora, por favor, usa a aplicação web.", "@setHasProgressionWarning": {}, "startDate": "Data de início", - "@startDate": {} + "@startDate": {}, + "endDate": "Data de término", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "applicationLogs": "Registos da aplicação", + "@applicationLogs": {}, + "creationDate": "Data de início", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Sem fim definido", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "enterTextInLanguage": "Por favor, introduz o texto la linguagem correta!", + "@enterTextInLanguage": {}, + "checkInformationBeforeSubmitting": "Por favor, verifica que a informação introduzida está correta antes de submeter o exercício", + "@checkInformationBeforeSubmitting": {}, + "identicalExercisePleaseDiscard": "Se encontrares um exercício igual ao que estás a introduzir, por favor descarta o teu rascunho e edita antes esse exercício.", + "@identicalExercisePleaseDiscard": {}, + "overview": "Panorama", + "@overview": {} } diff --git a/lib/l10n/app_pt_BR.arb b/lib/l10n/app_pt_BR.arb index cb84dcf32..83a2648a6 100644 --- a/lib/l10n/app_pt_BR.arb +++ b/lib/l10n/app_pt_BR.arb @@ -1068,5 +1068,11 @@ "lightMode": "Sempre modo claro", "@lightMode": {}, "systemMode": "Configurações do sistema", - "@systemMode": {} + "@systemMode": {}, + "endDate": "Data final", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "startDate": "Data inicial", + "@startDate": {} } diff --git a/lib/l10n/app_pt_PT.arb b/lib/l10n/app_pt_PT.arb index a5a7c90ed..bca6294f8 100644 --- a/lib/l10n/app_pt_PT.arb +++ b/lib/l10n/app_pt_PT.arb @@ -1,1062 +1,1078 @@ { - "login": "Iniciar sessão", - "@login": { - "description": "Text for login button" - }, - "success": "Sucesso", - "@success": { - "description": "Message when an action completed successfully, usually used as a heading" - }, - "noMatchingExerciseFound": "Não foram encontrados exercícios", - "@noMatchingExerciseFound": { - "description": "Message returned if no exercises match the searched string" - }, - "labelDashboard": "Painel", - "@labelDashboard": { - "description": "Title for screen dashboard" - }, - "exercise": "Exercício", - "@exercise": { - "description": "An exercise for a workout" - }, - "usernameValidChars": "O nome de utilizador só pode conter letras, números e os caracteres @, +, ., - e _", - "@usernameValidChars": { - "description": "Error message when the user tries to register a username with forbidden characters" - }, - "searchNamesInEnglish": "Também procurar nomes em inglês", - "@searchNamesInEnglish": {}, - "useCustomServer": "Usar servidor personalizado", - "@useCustomServer": { - "description": "Toggle button allowing users to switch between the default and a custom wger server" - }, - "equipment": "Equipamento", - "@equipment": { - "description": "Equipment needed to perform an exercise" - }, - "userProfile": "O teu perfil", - "@userProfile": {}, - "register": "Registar", - "@register": { - "description": "Text for registration button" - }, - "comment": "Comentário", - "@comment": { - "description": "Comment, additional information" - }, - "customServerHint": "Introduz o endereço do teu próprio servidor, senão será usado o predefinido", - "@customServerHint": { - "description": "Hint text for the form where the users can enter their own wger instance" - }, - "useDefaultServer": "Usar servidor predefinido", - "@useDefaultServer": { - "description": "Toggle button allowing users to switch between the default and a custom wger server" - }, - "invalidUrl": "Introduz um URL válido", - "@invalidUrl": { - "description": "Error message when the user enters an invalid URL, e.g. in the login form" - }, - "passwordsDontMatch": "As palavras-passe não coincidem", - "@passwordsDontMatch": { - "description": "Error message when the user enters two different passwords during registration" - }, - "passwordTooShort": "A palavra-passe é demasiado curta", - "@passwordTooShort": { - "description": "Error message when the user a password that is too short" - }, - "selectAvailablePlates": "Selecionar discos disponíveis", - "@selectAvailablePlates": {}, - "barWeight": "Peso da barra", - "@barWeight": {}, - "useColors": "Usar cores", - "@useColors": {}, - "password": "Palavra-passe", - "@password": {}, - "confirmPassword": "Confirmar palavra-passe", - "@confirmPassword": {}, - "invalidEmail": "Introduz um e-mail válido", - "@invalidEmail": { - "description": "Error message when the user enters an invalid email" - }, - "email": "Endereço de e-mail", - "@email": {}, - "username": "Nome de utilizador", - "@username": {}, - "invalidUsername": "Introduz um nome de utilizador válido", - "@invalidUsername": { - "description": "Error message when the user enters an invalid username" - }, - "useApiToken": "Usar Token da API", - "@useApiToken": {}, - "useUsernameAndPassword": "Usar nome de utilizador e palavra-passe", - "@useUsernameAndPassword": {}, - "apiToken": "Token da API", - "@apiToken": {}, - "invalidApiToken": "Introduz uma chave API válida", - "@invalidApiToken": { - "description": "Error message when the user enters an invalid API key" - }, - "apiTokenValidChars": "Uma chave API só pode conter letras de a-f, números de 0-9 e ter exatamente 40 caracteres", - "@apiTokenValidChars": { - "description": "Error message when the user tries to input a API key with forbidden characters" - }, - "customServerUrl": "URL da instância wger", - "@customServerUrl": { - "description": "Label in the form where the users can enter their own wger instance" - }, - "reset": "Repor", - "@reset": { - "description": "Button text allowing the user to reset the entered values to the default" - }, - "registerInstead": "Ainda não tens conta? Regista-te agora", - "@registerInstead": {}, - "loginInstead": "Já tens conta? Inicia sessão", - "@loginInstead": {}, - "labelBottomNavWorkout": "Treino", - "@labelBottomNavWorkout": { - "description": "Label used in bottom navigation, use a short word" - }, - "labelBottomNavNutrition": "Nutrição", - "@labelBottomNavNutrition": { - "description": "Label used in bottom navigation, use a short word" - }, - "labelWorkoutLogs": "Registos de treino", - "@labelWorkoutLogs": { - "description": "(Workout) logs" - }, - "labelWorkoutPlan": "Plano de treino", - "@labelWorkoutPlan": { - "description": "Title for screen workout plan" - }, - "successfullyDeleted": "Eliminado", - "@successfullyDeleted": { - "description": "Message when an item was successfully deleted" - }, - "successfullySaved": "Guardado", - "@successfullySaved": { - "description": "Message when an item was successfully saved" - }, - "exerciseList": "Lista de exercícios", - "@exerciseList": {}, - "exercises": "Exercícios", - "@exercises": { - "description": "Multiple exercises for a workout" - }, - "exerciseName": "Nome do exercício", - "@exerciseName": { - "description": "Label for the name of a workout exercise" - }, - "searchExercise": "Procura um exercício para adicionar", - "@searchExercise": { - "description": "Label on set form. Selected exercises are added to the set" - }, - "muscles": "Músculos", - "@muscles": { - "description": "(main) muscles trained by an exercise" - }, - "musclesSecondary": "Músculos secundários", - "@musclesSecondary": { - "description": "secondary muscles trained by an exercise" - }, - "category": "Categoria", - "@category": { - "description": "Category for an exercise, ingredient, etc." - }, - "routines": "Rotinas", - "@routines": {}, - "newRoutine": "Nova rotina", - "@newRoutine": {}, - "noRoutines": "Ainda não tens rotinas", - "@noRoutines": {}, - "reps": "Repetições", - "@reps": { - "description": "Shorthand for repetitions, used when space constraints are tighter" - }, - "sets": "Séries", - "@sets": { - "description": "The number of sets to be done for one exercise" - }, - "rir": "Repetições em Reserva", - "@rir": { - "description": "Shorthand for Repetitions In Reserve" - }, - "restTime": "Tempo de descanso", - "@restTime": {}, - "rirNotUsed": "ReR não utilizado", - "@rirNotUsed": { - "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" - }, - "useMetric": "Usar unidades métricas para peso corporal", - "@useMetric": {}, - "weightUnit": "Unidade de peso", - "@weightUnit": {}, - "set": "Série", - "@set": { - "description": "A set in a workout plan" - }, - "needsLogsToAdvance": "Precisa de registos para avançar", - "@needsLogsToAdvance": {}, - "repetitionUnit": "Unidade de repetição", - "@repetitionUnit": {}, - "dayDescriptionHelp": "Descrição do que é feito neste dia (ex.: \"dia de puxar\") ou que músculos são treinados (ex.: \"peito e ombros\")", - "@dayDescriptionHelp": {}, - "exerciseNr": "Exercício {nr}", - "@exerciseNr": { - "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", - "type": "text", - "placeholders": { - "nr": { - "type": "String" - } - } - }, - "supersetNr": "Superset {nr}", - "@supersetNr": { - "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", - "type": "text", - "placeholders": { - "nr": { - "type": "String" - } - } - }, - "sameRepetitions": "Se fizeres o mesmo número de repetições e peso em todas as séries, basta preencher uma linha. Por exemplo: para 4 séries de 10, escreve \"10\" e fica automaticamente \"4 x 10\".", - "@sameRepetitions": {}, - "impression": "Impressão", - "@impression": { - "description": "General impression (e.g. for a workout session) such as good, bad, etc." - }, - "notes": "Notas", - "@notes": { - "description": "Personal notes, e.g. for a workout session" - }, - "workoutSession": "Sessão de treino", - "@workoutSession": { - "description": "A (logged) workout session" - }, - "isRestDayHelp": "Nota que todas as séries e exercícios serão removidos se marcares o dia como descanso.", - "@isRestDayHelp": {}, - "restDay": "Dia de descanso", - "@restDay": {}, - "isRestDay": "É dia de descanso", - "@isRestDay": {}, - "selectExercises": "Se quiseres fazer um superset, podes procurar vários exercícios - eles serão agrupados", - "@selectExercises": {}, - "gymMode": "Modo ginásio", - "@gymMode": { - "description": "Label when starting the gym mode" - }, - "plateCalculator": "Discos", - "@plateCalculator": { - "description": "Label used for the plate calculator in the gym mode" - }, - "plateCalculatorNotDivisible": "Não é possível atingir o peso com os discos disponíveis", - "@plateCalculatorNotDivisible": { - "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" - }, - "pause": "Pausa", - "@pause": { - "description": "Noun, not an imperative! Label used for the pause when using the gym mode" - }, - "jumpTo": "Ir para", - "@jumpTo": { - "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" - }, - "todaysWorkout": "O teu treino de hoje", - "@todaysWorkout": {}, - "logHelpEntries": "Se houver várias entradas no mesmo dia com o mesmo número de repetições mas pesos diferentes, só aparece no gráfico a de maior peso.", - "@logHelpEntries": {}, - "logHelpEntriesUnits": "Apenas são mostradas entradas com unidade de peso (kg ou lb) e repetições, outras como tempo ou até falhar são ignoradas.", - "@logHelpEntriesUnits": {}, - "description": "Descrição", - "@description": {}, - "name": "Nome", - "@name": { - "description": "Name for a workout or nutritional plan" - }, - "save": "Guardar", - "@save": {}, - "verify": "Verificar", - "@verify": {}, - "addSet": "Adicionar série", - "@addSet": { - "description": "Label for the button that adds a set (to a workout day)" - }, - "addMeal": "Adicionar refeição", - "@addMeal": {}, - "mealLogged": "Refeição registada no diário", - "@mealLogged": {}, - "ingredientLogged": "Ingrediente registado no diário", - "@ingredientLogged": {}, - "logMeal": "Registar refeição no diário nutricional", - "@logMeal": {}, - "addIngredient": "Adicionar ingrediente", - "@addIngredient": {}, - "logIngredient": "Registar ingrediente no diário nutricional", - "@logIngredient": {}, - "searchIngredient": "Procurar ingrediente", - "@searchIngredient": { - "description": "Label on ingredient search form" - }, - "nutritionalPlan": "Plano nutricional", - "@nutritionalPlan": {}, - "nutritionalDiary": "Diário nutricional", - "@nutritionalDiary": {}, - "nutritionalPlans": "Planos nutricionais", - "@nutritionalPlans": {}, - "noNutritionalPlans": "Ainda não tens planos nutricionais", - "@noNutritionalPlans": { - "description": "Message shown when the user has no nutritional plans" - }, - "onlyLogging": "Registar apenas calorias", - "@onlyLogging": {}, - "onlyLoggingHelpText": "Marca esta opção se quiseres registar só as calorias, sem plano nutricional detalhado", - "@onlyLoggingHelpText": {}, - "goalMacro": "Objetivos de macronutrientes", - "@goalMacro": { - "description": "The goal for macronutrients" - }, - "selectMealToLog": "Seleciona uma refeição para registar no diário", - "@selectMealToLog": {}, - "yourCurrentNutritionPlanHasNoMealsDefinedYet": "O teu plano nutricional atual não tem refeições definidas", - "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { - "description": "Message shown when a nutrition plan doesn't have any meals" - }, - "toAddMealsToThePlanGoToNutritionalPlanDetails": "Para adicionar refeições ao plano, vai aos detalhes do plano nutricional", - "@toAddMealsToThePlanGoToNutritionalPlanDetails": { - "description": "Message shown to guide users to the nutritional plan details page to add meals" - }, - "goalEnergy": "Objetivo energético", - "@goalEnergy": {}, - "goalProtein": "Objetivo de proteína", - "@goalProtein": {}, - "goalCarbohydrates": "Objetivo de hidratos de carbono", - "@goalCarbohydrates": {}, - "goalFat": "Objetivo de gordura", - "@goalFat": {}, - "goalFiber": "Objetivo de fibra", - "@goalFiber": {}, - "anErrorOccurred": "Ocorreu um erro!", - "@anErrorOccurred": {}, - "errorInfoDescription": "Lamentamos, algo correu mal. Podes ajudar a corrigir isto ao reportar o problema no GitHub.", - "@errorInfoDescription": {}, - "errorInfoDescription2": "Podes continuar a usar a app, mas algumas funcionalidades podem não funcionar.", - "@errorInfoDescription2": {}, - "errorViewDetails": "Detalhes técnicos", - "@errorViewDetails": {}, - "errorCouldNotConnectToServer": "Não foi possível ligar ao servidor", - "@errorCouldNotConnectToServer": {}, - "copyToClipboard": "Copiar para a área de transferência", - "@copyToClipboard": {}, - "weight": "Peso", - "@weight": { - "description": "The weight of a workout log or body weight entry" - }, - "min": "Mín", - "@min": {}, - "max": "Máx", - "@max": {}, - "chartAllTimeTitle": "{name} total", - "@chartAllTimeTitle": { - "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", - "type": "text", - "placeholders": { - "name": { - "type": "String" - } - } - }, - "chart30DaysTitle": "{name} últimos 30 dias", - "@chart30DaysTitle": { - "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", - "type": "text", - "placeholders": { - "name": { - "type": "String" - } - } - }, - "chartDuringPlanTitle": "{chartName} durante o plano nutricional {planName}", - "@chartDuringPlanTitle": { - "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", - "type": "text", - "placeholders": { - "chartName": { - "type": "String" - }, - "planName": { - "type": "String" - } - } - }, - "measurement": "Medição", - "@measurement": {}, - "measurementCategoriesHelpText": "Categoria de medição, como 'bíceps' ou 'gordura corporal'", - "@measurementCategoriesHelpText": {}, - "measurementEntriesHelpText": "Unidade usada para medir, como 'cm' ou '%'", - "@measurementEntriesHelpText": {}, - "date": "Data", - "@date": { - "description": "The date of a workout log or body weight entry" - }, - "value": "Valor", - "@value": { - "description": "The value of a measurement entry" - }, - "time": "Hora", - "@time": { - "description": "The time of a meal or workout" - }, - "timeStart": "Hora de início", - "@timeStart": { - "description": "The starting time of a workout" - }, - "timeEnd": "Hora de fim", - "@timeEnd": { - "description": "The end time of a workout" - }, - "timeStartAhead": "Hora de início não pode ser depois da hora de fim", - "@timeStartAhead": {}, - "ingredient": "Ingrediente", - "@ingredient": {}, - "energy": "Energia", - "@energy": { - "description": "Energy in a meal, ingredient etc. e.g. in kJ" - }, - "planned": "Planeado", - "@planned": { - "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" - }, - "logged": "Registado", - "@logged": { - "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" - }, - "today": "Hoje", - "@today": {}, - "loggedToday": "Registado hoje", - "@loggedToday": {}, - "weekAverage": "Média de 7 dias", - "@weekAverage": { - "description": "Header for the column of '7 day average' nutritional values, i.e. what was logged last week" - }, - "surplus": "excedente", - "@surplus": { - "description": "Caloric surplus (either planned or unplanned)" - }, - "deficit": "défice", - "@deficit": { - "description": "Caloric deficit (either planned or unplanned)" - }, - "difference": "Diferença", - "@difference": {}, - "percentEnergy": "Percentagem da energia", - "@percentEnergy": {}, - "gPerBodyKg": "g por kg de corpo", - "@gPerBodyKg": { - "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" - }, - "total": "Total", - "@total": { - "description": "Label used for total sums of e.g. calories or similar" - }, - "kcal": "kcal", - "@kcal": { - "description": "Energy in a meal in kilocalories, kcal" - }, - "kJ": "kJ", - "@kJ": { - "description": "Energy in a meal in kilo joules, kJ" - }, - "g": "g", - "@g": { - "description": "Abbreviation for gram" - }, - "gValue": "{value} g", - "@gValue": { - "description": "A value in grams, e.g. 5 g", - "type": "text", - "placeholders": { - "value": { - "type": "String" - } - } - }, - "logout": "Terminar sessão", - "@logout": { - "description": "Text for logout button" - }, - "noIngredientsDefined": "Ainda não há ingredientes definidos", - "@noIngredientsDefined": {}, - "routineDays": "Dias na rotina", - "@routineDays": {}, - "newDay": "Novo dia", - "@newDay": {}, - "newSet": "Nova série", - "@newSet": { - "description": "Header when adding a new set to a workout day" - }, - "kcalValue": "{value} kcal", - "@kcalValue": { - "description": "A value in kcal, e.g. 500 kcal", - "type": "text", - "placeholders": { - "value": { - "type": "String" - } - } - }, - "protein": "Proteína", - "@protein": {}, - "resultingRoutine": "Rotina resultante", - "@resultingRoutine": {}, - "errorCouldNotConnectToServerDetails": "A aplicação não conseguiu ligar ao servidor. Verifica a ligação à internet ou o URL do servidor e tenta outra vez. Se continuar, contacta o administrador do servidor.", - "@errorCouldNotConnectToServerDetails": {}, - "needsLogsToAdvanceHelp": "Seleciona se queres que a rotina avance para o próximo dia apenas se registares um treino", - "@needsLogsToAdvanceHelp": {}, - "start": "Início", - "@start": { - "description": "Label on button to start the gym mode (i.e., an imperative)" - }, - "energyShort": "E", - "@energyShort": { - "description": "The first letter or short name of the word 'Energy', used in overviews" - }, - "macronutrients": "Macronutrientes", - "@macronutrients": {}, - "proteinShort": "P", - "@proteinShort": { - "description": "The first letter or short name of the word 'Protein', used in overviews" - }, - "measurements": "Medições", - "@measurements": { - "description": "Categories for the measurements such as biceps size, body fat, etc." - }, - "percentValue": "{value} %", - "@percentValue": { - "description": "A value in percent, e.g. 10 %", - "type": "text", - "placeholders": { - "value": { - "type": "String" - } - } - }, - "carbohydrates": "Hidratos de carbono", - "@carbohydrates": {}, - "carbohydratesShort": "C", - "@carbohydratesShort": { - "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" - }, - "sugars": "Açúcares", - "@sugars": {}, - "fat": "Gordura", - "@fat": {}, - "fatShort": "F", - "@fatShort": { - "description": "The first letter or short name of the word 'Fat', used in overviews" - }, - "fiber": "Fibras", - "@fiber": {}, - "sodium": "Sódio", - "@sodium": {}, - "amount": "Quantidade", - "@amount": { - "description": "The amount (e.g. in grams) of an ingredient in a meal" - }, - "unit": "Unidade", - "@unit": { - "description": "The unit used for a repetition (kg, time, etc.)" - }, - "newEntry": "Nova entrada", - "@newEntry": { - "description": "Title when adding a new entry such as a weight or log entry" - }, - "noMeasurementEntries": "Ainda não tens registos de medições", - "@noMeasurementEntries": {}, - "aboutDescription": "Obrigado por usares o wger! O wger é um projeto colaborativo de código aberto, feito por fãs de fitness de todo o mundo.", - "@aboutDescription": { - "description": "Text in the about dialog" - }, - "aboutDonateTitle": "Fazer um donativo", - "@aboutDonateTitle": {}, - "aboutDonateText": "Apesar de gratuito e assim continuará, manter o servidor tem custos! O desenvolvimento também exige muito tempo dos voluntários. A tua ajuda apoia diretamente estes custos.", - "@aboutDonateText": {}, - "aboutContributeTitle": "Contribuir", - "@aboutContributeTitle": {}, - "aboutContributeText": "Todos os tipos de contribuição são bem-vindos. Sejas programador, tradutor ou apenas apaixonado por fitness, toda a ajuda conta!", - "@aboutContributeText": {}, - "aboutBugsListTitle": "Reportar um problema ou sugerir uma funcionalidade", - "@aboutBugsListTitle": {}, - "aboutTranslationListTitle": "Traduzir a aplicação", - "@aboutTranslationListTitle": {}, - "aboutSourceListTitle": "Ver código-fonte", - "@aboutSourceListTitle": {}, - "aboutJoinCommunityTitle": "Junta-te à comunidade", - "@aboutJoinCommunityTitle": {}, - "aboutMastodonTitle": "Mastodon", - "@aboutMastodonTitle": {}, - "aboutDiscordTitle": "Discord", - "@aboutDiscordTitle": {}, - "others": "Outros", - "@others": {}, - "calendar": "Calendário", - "@calendar": {}, - "goToToday": "Ir para hoje", - "@goToToday": { - "description": "Label on button to jump back to 'today' in the calendar widget" - }, - "enterValue": "Introduz um valor", - "@enterValue": { - "description": "Error message when the user hasn't entered a value on a required field" - }, - "selectEntry": "Seleciona uma entrada", - "@selectEntry": {}, - "selectExercise": "Seleciona um exercício", - "@selectExercise": { - "description": "Error message when the user hasn't selected an exercise in the form" - }, - "enterCharacters": "Escreve entre {min} e {max} caracteres", - "@enterCharacters": { - "description": "Error message when the user hasn't entered the correct number of characters in a form", - "type": "text", - "placeholders": { - "min": { - "type": "String" - }, - "max": { - "type": "String" - } - } - }, - "enterMinCharacters": "Escreve pelo menos {min} caracteres", - "@enterMinCharacters": { - "description": "Error message when the user hasn't entered the minimum amount characters in a form", - "type": "text", - "placeholders": { - "min": { - "type": "String" - } - } - }, - "baseNameEnglish": "Todos os exercícios precisam de nome base em inglês", - "@baseNameEnglish": {}, - "nrOfSets": "Séries por exercício: {nrOfSets}", - "@nrOfSets": { - "description": "Label shown on the slider where the user selects the nr of sets", - "type": "text", - "placeholders": { - "nrOfSets": { - "type": "String" - } - } - }, - "optionsLabel": "Opções", - "@optionsLabel": { - "description": "Label for the popup with general app options" - }, - "takePicture": "Tirar foto", - "@takePicture": {}, - "chooseFromLibrary": "Escolher da galeria", - "@chooseFromLibrary": {}, - "gallery": "Galeria", - "@gallery": {}, - "addImage": "Adicionar imagem", - "@addImage": {}, - "appUpdateContent": "Esta versão da aplicação não é compatível com o servidor. Por favor, atualiza a aplicação.", - "@appUpdateContent": {}, - "productNotFoundDescription": "O produto com o código {barcode} não foi encontrado na base de dados wger", - "@productNotFoundDescription": { - "description": "Dialog info when product is not found with barcode", - "type": "text", - "placeholders": { - "barcode": { - "type": "String" - } - } - }, - "scanBarcode": "Ler código de barras", - "@scanBarcode": { - "description": "Label for scan barcode button" - }, - "close": "Fechar", - "@close": { - "description": "Translation for close" - }, - "add_exercise_image_license": "Imagens têm de ser compatíveis com a licença CC BY SA. Se tiveres dúvidas, usa apenas fotos tiradas por ti.", - "@add_exercise_image_license": {}, - "variations": "Variações", - "@variations": { - "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" - }, - "verifiedEmail": "E-mail verificado", - "@verifiedEmail": {}, - "verifiedEmailReason": "Tens de verificar o e-mail para poderes contribuir com exercícios", - "@verifiedEmailReason": {}, - "verifiedEmailInfo": "Foi enviado um e-mail de verificação para {email}", - "@verifiedEmailInfo": { - "placeholders": { - "email": { - "type": "String" - } - } - }, - "alternativeNames": "Nomes alternativos", - "@alternativeNames": {}, - "oneNamePerLine": "Um nome por linha", - "@oneNamePerLine": {}, - "whatVariationsExist": "Que variações deste exercício existem (se houver)?", - "@whatVariationsExist": {}, - "previous": "Anterior", - "@previous": {}, - "next": "Seguinte", - "@next": {}, - "images": "Imagens", - "@images": {}, - "language": "Idioma", - "@language": {}, - "addExercise": "Adicionar exercício", - "@addExercise": {}, - "fitInWeek": "Ajustar à semana", - "@fitInWeek": {}, - "toggleDetails": "Mostrar detalhes", - "@toggleDetails": { - "description": "Switch to toggle detail / overview" - }, - "edit": "Editar", - "@edit": {}, - "aboutWhySupportTitle": "Código aberto e gratuito ❤️", - "@aboutWhySupportTitle": {}, - "goToDetailPage": "Ir para a página de detalhes", - "@goToDetailPage": {}, - "productFound": "Produto encontrado", - "@productFound": { - "description": "Header label for dialog when product is found with barcode" - }, - "unVerifiedEmail": "E-mail não verificado", - "@unVerifiedEmail": {}, - "moreMeasurementEntries": "Adicionar nova medição", - "@moreMeasurementEntries": { - "description": "Message shown when the user wants to add new measurement" - }, - "selectIngredient": "Seleciona um ingrediente", - "@selectIngredient": { - "description": "Error message when the user hasn't selected an ingredient from the autocompleter" - }, - "newNutritionalPlan": "Novo plano nutricional", - "@newNutritionalPlan": {}, - "setUnitsAndRir": "Unidades de série e ReR", - "@setUnitsAndRir": { - "description": "Label shown on the slider where the user can toggle showing units and RiR", - "type": "text" - }, - "saturatedFat": "Gordura saturada", - "@saturatedFat": {}, - "selectImage": "Seleciona uma imagem", - "@selectImage": { - "description": "Label and error message when the user hasn't selected an image to save" - }, - "appUpdateTitle": "Atualização necessária", - "@appUpdateTitle": {}, - "noWeightEntries": "Ainda não tens registos de peso", - "@noWeightEntries": { - "description": "Message shown when the user has no logged weight entries" - }, - "confirmDelete": "Tens a certeza que queres eliminar '{toDelete}'?", - "@confirmDelete": { - "description": "Confirmation text before the user deletes an object", - "type": "text", - "placeholders": { - "toDelete": { - "type": "String" - } - } - }, - "recentlyUsedIngredients": "Ingredientes adicionados recentemente", - "@recentlyUsedIngredients": { - "description": "A message when a user adds a new ingredient to a meal." - }, - "loadingText": "A carregar...", - "@loadingText": { - "description": "Text to show when entries are being loaded in the background: Loading..." - }, - "delete": "Eliminar", - "@delete": {}, - "productNotFound": "Produto não encontrado", - "@productNotFound": { - "description": "Header label for dialog when product is not found with barcode" - }, - "enterValidNumber": "Introduz um número válido", - "@enterValidNumber": { - "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" - }, - "dataCopied": "Dados copiados para nova entrada", - "@dataCopied": { - "description": "Snackbar message to show on copying data to a new log entry" - }, - "productFoundDescription": "O código de barras corresponde a este produto: {productName}. Queres continuar?", - "@productFoundDescription": { - "description": "Dialog info when product is found with barcode", - "type": "text", - "placeholders": { - "productName": { - "type": "String" - } - } - }, - "alsoKnownAs": "Também conhecido como: {aliases}", - "@alsoKnownAs": { - "placeholders": { - "aliases": { - "type": "String" - } + "login": "Iniciar sessão", + "@login": { + "description": "Text for login button" }, - "description": "List of alternative names for an exercise" - }, - "fitInWeekHelp": "Se ativado, os dias repetem-se semanalmente. Caso contrário, seguem-se em sequência sem respeitar o início da semana.", - "@fitInWeekHelp": {}, - "addSuperset": "Adicionar Superset", - "@addSuperset": {}, - "setHasProgression": "Série com progressão", - "@setHasProgression": {}, - "setHasProgressionWarning": "De momento não é possível editar todas as definições de uma série na app móvel ou configurar progressões automáticas. Usa a versão web.", - "@setHasProgressionWarning": {}, - "setHasNoExercises": "Esta série ainda não tem exercícios!", - "@setHasNoExercises": {}, - "contributeExercise": "Contribuir com um exercício", - "@contributeExercise": {}, - "translation": "Tradução", - "@translation": {}, - "translateExercise": "Traduz este exercício agora", - "@translateExercise": {}, - "baseData": "Básico em inglês", - "@baseData": { - "description": "The base data for an exercise such as category, trained muscles, etc." - }, - "settingsTitle": "Definições", - "@settingsTitle": {}, - "settingsCacheTitle": "Cache", - "@settingsCacheTitle": {}, - "settingsExerciseCacheDescription": "Cache de exercícios", - "@settingsExerciseCacheDescription": {}, - "settingsIngredientCacheDescription": "Cache de ingredientes", - "@settingsIngredientCacheDescription": {}, - "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", - "@settingsCacheDeletedSnackbar": {}, - "aboutPageTitle": "Sobre nós & Apoio", - "@aboutPageTitle": {}, - "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e e-mail verificado", - "@contributeExerciseWarning": { - "description": "Number of days before which a person can add exercise", - "placeholders": { - "days": { - "type": "String", - "example": "14" - } + "success": "Sucesso", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "noMatchingExerciseFound": "Não foram encontrados exercícios", + "@noMatchingExerciseFound": { + "description": "Message returned if no exercises match the searched string" + }, + "labelDashboard": "Painel", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "exercise": "Exercício", + "@exercise": { + "description": "An exercise for a workout" + }, + "usernameValidChars": "O nome de utilizador só pode conter letras, números e os caracteres @, +, ., - e _", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "searchNamesInEnglish": "Também procurar nomes em inglês", + "@searchNamesInEnglish": {}, + "useCustomServer": "Usar servidor personalizado", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "equipment": "Equipamento", + "@equipment": { + "description": "Equipment needed to perform an exercise" + }, + "userProfile": "O teu perfil", + "@userProfile": {}, + "register": "Registar", + "@register": { + "description": "Text for registration button" + }, + "comment": "Comentário", + "@comment": { + "description": "Comment, additional information" + }, + "customServerHint": "Introduz o endereço do teu próprio servidor, senão será usado o predefinido", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "useDefaultServer": "Usar servidor predefinido", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "invalidUrl": "Introduz um URL válido", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "passwordsDontMatch": "As palavras-passe não coincidem", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "A palavra-passe é demasiado curta", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "Selecionar discos disponíveis", + "@selectAvailablePlates": {}, + "barWeight": "Peso da barra", + "@barWeight": {}, + "useColors": "Usar cores", + "@useColors": {}, + "password": "Palavra-passe", + "@password": {}, + "confirmPassword": "Confirmar palavra-passe", + "@confirmPassword": {}, + "invalidEmail": "Introduz um e-mail válido", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "email": "Endereço de e-mail", + "@email": {}, + "username": "Nome de utilizador", + "@username": {}, + "invalidUsername": "Introduz um nome de utilizador válido", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "useApiToken": "Usar Token da API", + "@useApiToken": {}, + "useUsernameAndPassword": "Usar nome de utilizador e palavra-passe", + "@useUsernameAndPassword": {}, + "apiToken": "Token da API", + "@apiToken": {}, + "invalidApiToken": "Introduz uma chave API válida", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "Uma chave API só pode conter letras de a-f, números de 0-9 e ter exatamente 40 caracteres", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerUrl": "URL da instância wger", + "@customServerUrl": { + "description": "Label in the form where the users can enter their own wger instance" + }, + "reset": "Repor", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "Ainda não tens conta? Regista-te agora", + "@registerInstead": {}, + "loginInstead": "Já tens conta? Inicia sessão", + "@loginInstead": {}, + "labelBottomNavWorkout": "Treino", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "Nutrição", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "Registos de treino", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "Plano de treino", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "successfullyDeleted": "Eliminado", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "successfullySaved": "Guardado", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "exerciseList": "Lista de exercícios", + "@exerciseList": {}, + "exercises": "Exercícios", + "@exercises": { + "description": "Multiple exercises for a workout" + }, + "exerciseName": "Nome do exercício", + "@exerciseName": { + "description": "Label for the name of a workout exercise" + }, + "searchExercise": "Procura um exercício para adicionar", + "@searchExercise": { + "description": "Label on set form. Selected exercises are added to the set" + }, + "muscles": "Músculos", + "@muscles": { + "description": "(main) muscles trained by an exercise" + }, + "musclesSecondary": "Músculos secundários", + "@musclesSecondary": { + "description": "secondary muscles trained by an exercise" + }, + "category": "Categoria", + "@category": { + "description": "Category for an exercise, ingredient, etc." + }, + "routines": "Rotinas", + "@routines": {}, + "newRoutine": "Nova rotina", + "@newRoutine": {}, + "noRoutines": "Ainda não tens rotinas", + "@noRoutines": {}, + "reps": "Repetições", + "@reps": { + "description": "Shorthand for repetitions, used when space constraints are tighter" + }, + "sets": "Séries", + "@sets": { + "description": "The number of sets to be done for one exercise" + }, + "rir": "Repetições em Reserva", + "@rir": { + "description": "Shorthand for Repetitions In Reserve" + }, + "restTime": "Tempo de descanso", + "@restTime": {}, + "rirNotUsed": "ReR não utilizado", + "@rirNotUsed": { + "description": "Label used in RiR slider when the RiR value is not used/saved for the current setting or log" + }, + "useMetric": "Usar unidades métricas para peso corporal", + "@useMetric": {}, + "weightUnit": "Unidade de peso", + "@weightUnit": {}, + "set": "Série", + "@set": { + "description": "A set in a workout plan" + }, + "needsLogsToAdvance": "Precisa de registos para avançar", + "@needsLogsToAdvance": {}, + "repetitionUnit": "Unidade de repetição", + "@repetitionUnit": {}, + "dayDescriptionHelp": "Descrição do que é feito neste dia (ex.: \"dia de puxar\") ou que músculos são treinados (ex.: \"peito e ombros\")", + "@dayDescriptionHelp": {}, + "exerciseNr": "Exercício {nr}", + "@exerciseNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Set Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "supersetNr": "Superset {nr}", + "@supersetNr": { + "description": "Header in form indicating the number of the current exercise. Can also be translated as something like 'Superset Nr. xy'.", + "type": "text", + "placeholders": { + "nr": { + "type": "String" + } + } + }, + "sameRepetitions": "Se fizeres o mesmo número de repetições e peso em todas as séries, basta preencher uma linha. Por exemplo: para 4 séries de 10, escreve \"10\" e fica automaticamente \"4 x 10\".", + "@sameRepetitions": {}, + "impression": "Impressão", + "@impression": { + "description": "General impression (e.g. for a workout session) such as good, bad, etc." + }, + "notes": "Notas", + "@notes": { + "description": "Personal notes, e.g. for a workout session" + }, + "workoutSession": "Sessão de treino", + "@workoutSession": { + "description": "A (logged) workout session" + }, + "isRestDayHelp": "Nota que todas as séries e exercícios serão removidos se marcares o dia como descanso.", + "@isRestDayHelp": {}, + "restDay": "Dia de descanso", + "@restDay": {}, + "isRestDay": "É dia de descanso", + "@isRestDay": {}, + "selectExercises": "Se quiseres fazer um superset, podes procurar vários exercícios - eles serão agrupados", + "@selectExercises": {}, + "gymMode": "Modo ginásio", + "@gymMode": { + "description": "Label when starting the gym mode" + }, + "plateCalculator": "Discos", + "@plateCalculator": { + "description": "Label used for the plate calculator in the gym mode" + }, + "plateCalculatorNotDivisible": "Não é possível atingir o peso com os discos disponíveis", + "@plateCalculatorNotDivisible": { + "description": "Error message when the current weight is not reachable with plates (e.g. 33.1 kg)" + }, + "pause": "Pausa", + "@pause": { + "description": "Noun, not an imperative! Label used for the pause when using the gym mode" + }, + "jumpTo": "Ir para", + "@jumpTo": { + "description": "Imperative. Label used in popup allowing the user to jump to a specific exercise while in the gym mode" + }, + "todaysWorkout": "O teu treino de hoje", + "@todaysWorkout": {}, + "logHelpEntries": "Se houver várias entradas no mesmo dia com o mesmo número de repetições mas pesos diferentes, só aparece no gráfico a de maior peso.", + "@logHelpEntries": {}, + "logHelpEntriesUnits": "Apenas são mostradas entradas com unidade de peso (kg ou lb) e repetições, outras como tempo ou até falhar são ignoradas.", + "@logHelpEntriesUnits": {}, + "description": "Descrição", + "@description": {}, + "name": "Nome", + "@name": { + "description": "Name for a workout or nutritional plan" + }, + "save": "Guardar", + "@save": {}, + "verify": "Verificar", + "@verify": {}, + "addSet": "Adicionar série", + "@addSet": { + "description": "Label for the button that adds a set (to a workout day)" + }, + "addMeal": "Adicionar refeição", + "@addMeal": {}, + "mealLogged": "Refeição registada no diário", + "@mealLogged": {}, + "ingredientLogged": "Ingrediente registado no diário", + "@ingredientLogged": {}, + "logMeal": "Registar refeição no diário nutricional", + "@logMeal": {}, + "addIngredient": "Adicionar ingrediente", + "@addIngredient": {}, + "logIngredient": "Registar ingrediente no diário nutricional", + "@logIngredient": {}, + "searchIngredient": "Procurar ingrediente", + "@searchIngredient": { + "description": "Label on ingredient search form" + }, + "nutritionalPlan": "Plano nutricional", + "@nutritionalPlan": {}, + "nutritionalDiary": "Diário nutricional", + "@nutritionalDiary": {}, + "nutritionalPlans": "Planos nutricionais", + "@nutritionalPlans": {}, + "noNutritionalPlans": "Ainda não tens planos nutricionais", + "@noNutritionalPlans": { + "description": "Message shown when the user has no nutritional plans" + }, + "onlyLogging": "Registar apenas calorias", + "@onlyLogging": {}, + "onlyLoggingHelpText": "Marca esta opção se quiseres registar só as calorias, sem plano nutricional detalhado", + "@onlyLoggingHelpText": {}, + "goalMacro": "Objetivos de macronutrientes", + "@goalMacro": { + "description": "The goal for macronutrients" + }, + "selectMealToLog": "Seleciona uma refeição para registar no diário", + "@selectMealToLog": {}, + "yourCurrentNutritionPlanHasNoMealsDefinedYet": "O teu plano nutricional atual não tem refeições definidas", + "@yourCurrentNutritionPlanHasNoMealsDefinedYet": { + "description": "Message shown when a nutrition plan doesn't have any meals" + }, + "toAddMealsToThePlanGoToNutritionalPlanDetails": "Para adicionar refeições ao plano, vai aos detalhes do plano nutricional", + "@toAddMealsToThePlanGoToNutritionalPlanDetails": { + "description": "Message shown to guide users to the nutritional plan details page to add meals" + }, + "goalEnergy": "Objetivo energético", + "@goalEnergy": {}, + "goalProtein": "Objetivo de proteína", + "@goalProtein": {}, + "goalCarbohydrates": "Objetivo de hidratos de carbono", + "@goalCarbohydrates": {}, + "goalFat": "Objetivo de gordura", + "@goalFat": {}, + "goalFiber": "Objetivo de fibra", + "@goalFiber": {}, + "anErrorOccurred": "Ocorreu um erro!", + "@anErrorOccurred": {}, + "errorInfoDescription": "Lamentamos, algo correu mal. Podes ajudar a corrigir isto ao reportar o problema no GitHub.", + "@errorInfoDescription": {}, + "errorInfoDescription2": "Podes continuar a usar a app, mas algumas funcionalidades podem não funcionar.", + "@errorInfoDescription2": {}, + "errorViewDetails": "Detalhes técnicos", + "@errorViewDetails": {}, + "errorCouldNotConnectToServer": "Não foi possível ligar ao servidor", + "@errorCouldNotConnectToServer": {}, + "copyToClipboard": "Copiar para a área de transferência", + "@copyToClipboard": {}, + "weight": "Peso", + "@weight": { + "description": "The weight of a workout log or body weight entry" + }, + "min": "Mín", + "@min": {}, + "max": "Máx", + "@max": {}, + "chartAllTimeTitle": "{name} total", + "@chartAllTimeTitle": { + "description": "All-time chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chart30DaysTitle": "{name} últimos 30 dias", + "@chart30DaysTitle": { + "description": "last 30 days chart of 'name' (e.g. 'weight', 'body fat' etc.)", + "type": "text", + "placeholders": { + "name": { + "type": "String" + } + } + }, + "chartDuringPlanTitle": "{chartName} durante o plano nutricional {planName}", + "@chartDuringPlanTitle": { + "description": "chart of 'chartName' (e.g. 'weight', 'body fat' etc.) logged during plan", + "type": "text", + "placeholders": { + "chartName": { + "type": "String" + }, + "planName": { + "type": "String" + } + } + }, + "measurement": "Medição", + "@measurement": {}, + "measurementCategoriesHelpText": "Categoria de medição, como 'bíceps' ou 'gordura corporal'", + "@measurementCategoriesHelpText": {}, + "measurementEntriesHelpText": "Unidade usada para medir, como 'cm' ou '%'", + "@measurementEntriesHelpText": {}, + "date": "Data", + "@date": { + "description": "The date of a workout log or body weight entry" + }, + "value": "Valor", + "@value": { + "description": "The value of a measurement entry" + }, + "time": "Hora", + "@time": { + "description": "The time of a meal or workout" + }, + "timeStart": "Hora de início", + "@timeStart": { + "description": "The starting time of a workout" + }, + "timeEnd": "Hora de fim", + "@timeEnd": { + "description": "The end time of a workout" + }, + "timeStartAhead": "Hora de início não pode ser depois da hora de fim", + "@timeStartAhead": {}, + "ingredient": "Ingrediente", + "@ingredient": {}, + "energy": "Energia", + "@energy": { + "description": "Energy in a meal, ingredient etc. e.g. in kJ" + }, + "planned": "Planeado", + "@planned": { + "description": "Header for the column of 'planned' nutritional values, i.e. what should be eaten" + }, + "logged": "Registado", + "@logged": { + "description": "Header for the column of 'logged' nutritional values, i.e. what was eaten" + }, + "today": "Hoje", + "@today": {}, + "loggedToday": "Registado hoje", + "@loggedToday": {}, + "weekAverage": "Média de 7 dias", + "@weekAverage": { + "description": "Header for the column of '7 day average' nutritional values, i.e. what was logged last week" + }, + "surplus": "excedente", + "@surplus": { + "description": "Caloric surplus (either planned or unplanned)" + }, + "deficit": "défice", + "@deficit": { + "description": "Caloric deficit (either planned or unplanned)" + }, + "difference": "Diferença", + "@difference": {}, + "percentEnergy": "Percentagem da energia", + "@percentEnergy": {}, + "gPerBodyKg": "g por kg de corpo", + "@gPerBodyKg": { + "description": "Label used for total sums of e.g. calories or similar in grams per Kg of body weight" + }, + "total": "Total", + "@total": { + "description": "Label used for total sums of e.g. calories or similar" + }, + "kcal": "kcal", + "@kcal": { + "description": "Energy in a meal in kilocalories, kcal" + }, + "kJ": "kJ", + "@kJ": { + "description": "Energy in a meal in kilo joules, kJ" + }, + "g": "g", + "@g": { + "description": "Abbreviation for gram" + }, + "gValue": "{value} g", + "@gValue": { + "description": "A value in grams, e.g. 5 g", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "logout": "Terminar sessão", + "@logout": { + "description": "Text for logout button" + }, + "noIngredientsDefined": "Ainda não há ingredientes definidos", + "@noIngredientsDefined": {}, + "routineDays": "Dias na rotina", + "@routineDays": {}, + "newDay": "Novo dia", + "@newDay": {}, + "newSet": "Nova série", + "@newSet": { + "description": "Header when adding a new set to a workout day" + }, + "kcalValue": "{value} kcal", + "@kcalValue": { + "description": "A value in kcal, e.g. 500 kcal", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "protein": "Proteína", + "@protein": {}, + "resultingRoutine": "Rotina resultante", + "@resultingRoutine": {}, + "errorCouldNotConnectToServerDetails": "A aplicação não conseguiu ligar ao servidor. Verifica a ligação à internet ou o URL do servidor e tenta outra vez. Se continuar, contacta o administrador do servidor.", + "@errorCouldNotConnectToServerDetails": {}, + "needsLogsToAdvanceHelp": "Seleciona se queres que a rotina avance para o próximo dia apenas se registares um treino", + "@needsLogsToAdvanceHelp": {}, + "start": "Início", + "@start": { + "description": "Label on button to start the gym mode (i.e., an imperative)" + }, + "energyShort": "E", + "@energyShort": { + "description": "The first letter or short name of the word 'Energy', used in overviews" + }, + "macronutrients": "Macronutrientes", + "@macronutrients": {}, + "proteinShort": "P", + "@proteinShort": { + "description": "The first letter or short name of the word 'Protein', used in overviews" + }, + "measurements": "Medições", + "@measurements": { + "description": "Categories for the measurements such as biceps size, body fat, etc." + }, + "percentValue": "{value} %", + "@percentValue": { + "description": "A value in percent, e.g. 10 %", + "type": "text", + "placeholders": { + "value": { + "type": "String" + } + } + }, + "carbohydrates": "Hidratos de carbono", + "@carbohydrates": {}, + "carbohydratesShort": "C", + "@carbohydratesShort": { + "description": "The first letter or short name of the word 'Carbohydrates', used in overviews" + }, + "sugars": "Açúcares", + "@sugars": {}, + "fat": "Gordura", + "@fat": {}, + "fatShort": "F", + "@fatShort": { + "description": "The first letter or short name of the word 'Fat', used in overviews" + }, + "fiber": "Fibras", + "@fiber": {}, + "sodium": "Sódio", + "@sodium": {}, + "amount": "Quantidade", + "@amount": { + "description": "The amount (e.g. in grams) of an ingredient in a meal" + }, + "unit": "Unidade", + "@unit": { + "description": "The unit used for a repetition (kg, time, etc.)" + }, + "newEntry": "Nova entrada", + "@newEntry": { + "description": "Title when adding a new entry such as a weight or log entry" + }, + "noMeasurementEntries": "Ainda não tens registos de medições", + "@noMeasurementEntries": {}, + "aboutDescription": "Obrigado por usares o wger! O wger é um projeto colaborativo de código aberto, feito por fãs de fitness de todo o mundo.", + "@aboutDescription": { + "description": "Text in the about dialog" + }, + "aboutDonateTitle": "Fazer um donativo", + "@aboutDonateTitle": {}, + "aboutDonateText": "Apesar de gratuito e assim continuará, manter o servidor tem custos! O desenvolvimento também exige muito tempo dos voluntários. A tua ajuda apoia diretamente estes custos.", + "@aboutDonateText": {}, + "aboutContributeTitle": "Contribuir", + "@aboutContributeTitle": {}, + "aboutContributeText": "Todos os tipos de contribuição são bem-vindos. Sejas programador, tradutor ou apenas apaixonado por fitness, toda a ajuda conta!", + "@aboutContributeText": {}, + "aboutBugsListTitle": "Reportar um problema ou sugerir uma funcionalidade", + "@aboutBugsListTitle": {}, + "aboutTranslationListTitle": "Traduzir a aplicação", + "@aboutTranslationListTitle": {}, + "aboutSourceListTitle": "Ver código-fonte", + "@aboutSourceListTitle": {}, + "aboutJoinCommunityTitle": "Junta-te à comunidade", + "@aboutJoinCommunityTitle": {}, + "aboutMastodonTitle": "Mastodon", + "@aboutMastodonTitle": {}, + "aboutDiscordTitle": "Discord", + "@aboutDiscordTitle": {}, + "others": "Outros", + "@others": {}, + "calendar": "Calendário", + "@calendar": {}, + "goToToday": "Ir para hoje", + "@goToToday": { + "description": "Label on button to jump back to 'today' in the calendar widget" + }, + "enterValue": "Introduz um valor", + "@enterValue": { + "description": "Error message when the user hasn't entered a value on a required field" + }, + "selectEntry": "Seleciona uma entrada", + "@selectEntry": {}, + "selectExercise": "Seleciona um exercício", + "@selectExercise": { + "description": "Error message when the user hasn't selected an exercise in the form" + }, + "enterCharacters": "Escreve entre {min} e {max} caracteres", + "@enterCharacters": { + "description": "Error message when the user hasn't entered the correct number of characters in a form", + "type": "text", + "placeholders": { + "min": { + "type": "String" + }, + "max": { + "type": "String" + } + } + }, + "enterMinCharacters": "Escreve pelo menos {min} caracteres", + "@enterMinCharacters": { + "description": "Error message when the user hasn't entered the minimum amount characters in a form", + "type": "text", + "placeholders": { + "min": { + "type": "String" + } + } + }, + "baseNameEnglish": "Todos os exercícios precisam de nome base em inglês", + "@baseNameEnglish": {}, + "nrOfSets": "Séries por exercício: {nrOfSets}", + "@nrOfSets": { + "description": "Label shown on the slider where the user selects the nr of sets", + "type": "text", + "placeholders": { + "nrOfSets": { + "type": "String" + } + } + }, + "optionsLabel": "Opções", + "@optionsLabel": { + "description": "Label for the popup with general app options" + }, + "takePicture": "Tirar foto", + "@takePicture": {}, + "chooseFromLibrary": "Escolher da galeria", + "@chooseFromLibrary": {}, + "gallery": "Galeria", + "@gallery": {}, + "addImage": "Adicionar imagem", + "@addImage": {}, + "appUpdateContent": "Esta versão da aplicação não é compatível com o servidor. Por favor, atualiza a aplicação.", + "@appUpdateContent": {}, + "productNotFoundDescription": "O produto com o código {barcode} não foi encontrado na base de dados wger", + "@productNotFoundDescription": { + "description": "Dialog info when product is not found with barcode", + "type": "text", + "placeholders": { + "barcode": { + "type": "String" + } + } + }, + "scanBarcode": "Ler código de barras", + "@scanBarcode": { + "description": "Label for scan barcode button" + }, + "close": "Fechar", + "@close": { + "description": "Translation for close" + }, + "add_exercise_image_license": "Imagens têm de ser compatíveis com a licença CC BY SA. Se tiveres dúvidas, usa apenas fotos tiradas por ti.", + "@add_exercise_image_license": {}, + "variations": "Variações", + "@variations": { + "description": "Variations of one exercise (e.g. benchpress and benchpress narrow)" + }, + "verifiedEmail": "E-mail verificado", + "@verifiedEmail": {}, + "verifiedEmailReason": "Tens de verificar o e-mail para poderes contribuir com exercícios", + "@verifiedEmailReason": {}, + "verifiedEmailInfo": "Foi enviado um e-mail de verificação para {email}", + "@verifiedEmailInfo": { + "placeholders": { + "email": { + "type": "String" + } + } + }, + "alternativeNames": "Nomes alternativos", + "@alternativeNames": {}, + "oneNamePerLine": "Um nome por linha", + "@oneNamePerLine": {}, + "whatVariationsExist": "Que variações deste exercício existem (se houver)?", + "@whatVariationsExist": {}, + "previous": "Anterior", + "@previous": {}, + "next": "Seguinte", + "@next": {}, + "images": "Imagens", + "@images": {}, + "language": "Idioma", + "@language": {}, + "addExercise": "Adicionar exercício", + "@addExercise": {}, + "fitInWeek": "Ajustar à semana", + "@fitInWeek": {}, + "toggleDetails": "Mostrar detalhes", + "@toggleDetails": { + "description": "Switch to toggle detail / overview" + }, + "edit": "Editar", + "@edit": {}, + "aboutWhySupportTitle": "Código aberto e gratuito ❤️", + "@aboutWhySupportTitle": {}, + "goToDetailPage": "Ir para a página de detalhes", + "@goToDetailPage": {}, + "productFound": "Produto encontrado", + "@productFound": { + "description": "Header label for dialog when product is found with barcode" + }, + "unVerifiedEmail": "E-mail não verificado", + "@unVerifiedEmail": {}, + "moreMeasurementEntries": "Adicionar nova medição", + "@moreMeasurementEntries": { + "description": "Message shown when the user wants to add new measurement" + }, + "selectIngredient": "Seleciona um ingrediente", + "@selectIngredient": { + "description": "Error message when the user hasn't selected an ingredient from the autocompleter" + }, + "newNutritionalPlan": "Novo plano nutricional", + "@newNutritionalPlan": {}, + "setUnitsAndRir": "Unidades de série e ReR", + "@setUnitsAndRir": { + "description": "Label shown on the slider where the user can toggle showing units and RiR", + "type": "text" + }, + "saturatedFat": "Gordura saturada", + "@saturatedFat": {}, + "selectImage": "Seleciona uma imagem", + "@selectImage": { + "description": "Label and error message when the user hasn't selected an image to save" + }, + "appUpdateTitle": "Atualização necessária", + "@appUpdateTitle": {}, + "noWeightEntries": "Ainda não tens registos de peso", + "@noWeightEntries": { + "description": "Message shown when the user has no logged weight entries" + }, + "confirmDelete": "Tens a certeza que queres eliminar '{toDelete}'?", + "@confirmDelete": { + "description": "Confirmation text before the user deletes an object", + "type": "text", + "placeholders": { + "toDelete": { + "type": "String" + } + } + }, + "recentlyUsedIngredients": "Ingredientes adicionados recentemente", + "@recentlyUsedIngredients": { + "description": "A message when a user adds a new ingredient to a meal." + }, + "loadingText": "A carregar...", + "@loadingText": { + "description": "Text to show when entries are being loaded in the background: Loading..." + }, + "delete": "Eliminar", + "@delete": {}, + "productNotFound": "Produto não encontrado", + "@productNotFound": { + "description": "Header label for dialog when product is not found with barcode" + }, + "enterValidNumber": "Introduz um número válido", + "@enterValidNumber": { + "description": "Error message when the user has submitted an invalid number (e.g. '3,.,.,.')" + }, + "dataCopied": "Dados copiados para nova entrada", + "@dataCopied": { + "description": "Snackbar message to show on copying data to a new log entry" + }, + "productFoundDescription": "O código de barras corresponde a este produto: {productName}. Queres continuar?", + "@productFoundDescription": { + "description": "Dialog info when product is found with barcode", + "type": "text", + "placeholders": { + "productName": { + "type": "String" + } + } + }, + "alsoKnownAs": "Também conhecido como: {aliases}", + "@alsoKnownAs": { + "placeholders": { + "aliases": { + "type": "String" + } + }, + "description": "List of alternative names for an exercise" + }, + "fitInWeekHelp": "Se ativado, os dias repetem-se semanalmente. Caso contrário, seguem-se em sequência sem respeitar o início da semana.", + "@fitInWeekHelp": {}, + "addSuperset": "Adicionar Superset", + "@addSuperset": {}, + "setHasProgression": "Série com progressão", + "@setHasProgression": {}, + "setHasProgressionWarning": "De momento não é possível editar todas as definições de uma série na app móvel ou configurar progressões automáticas. Usa a versão web.", + "@setHasProgressionWarning": {}, + "setHasNoExercises": "Esta série ainda não tem exercícios!", + "@setHasNoExercises": {}, + "contributeExercise": "Contribuir com um exercício", + "@contributeExercise": {}, + "translation": "Tradução", + "@translation": {}, + "translateExercise": "Traduz este exercício agora", + "@translateExercise": {}, + "baseData": "Básico em inglês", + "@baseData": { + "description": "The base data for an exercise such as category, trained muscles, etc." + }, + "settingsTitle": "Definições", + "@settingsTitle": {}, + "settingsCacheTitle": "Cache", + "@settingsCacheTitle": {}, + "settingsExerciseCacheDescription": "Cache de exercícios", + "@settingsExerciseCacheDescription": {}, + "settingsIngredientCacheDescription": "Cache de ingredientes", + "@settingsIngredientCacheDescription": {}, + "settingsCacheDeletedSnackbar": "Cache limpo com sucesso", + "@settingsCacheDeletedSnackbar": {}, + "aboutPageTitle": "Sobre nós & Apoio", + "@aboutPageTitle": {}, + "contributeExerciseWarning": "Só podes contribuir com exercícios se a tua conta tiver mais de {days} dias e e-mail verificado", + "@contributeExerciseWarning": { + "description": "Number of days before which a person can add exercise", + "placeholders": { + "days": { + "type": "String", + "example": "14" + } + } + }, + "simpleMode": "Modo simples", + "@simpleMode": {}, + "simpleModeHelp": "Esconder opções mais avançadas ao editar exercícios", + "@simpleModeHelp": {}, + "progressionRules": "Este exercício tem regras de progressão e não pode ser editado na app. Usa a versão web para o editar.", + "@progressionRules": {}, + "cacheWarning": "Por causa da cache, pode demorar um pouco até veres as alterações na app.", + "@cacheWarning": {}, + "textPromptTitle": "Pronto para começar?", + "@textPromptTitle": {}, + "textPromptSubheading": "Clica no botão de ação para começar", + "@textPromptSubheading": {}, + "abs": "Abdominais", + "@abs": { + "description": "Generated entry for translation for server strings" + }, + "arms": "Braços", + "@arms": { + "description": "Generated entry for translation for server strings" + }, + "back": "Costas", + "@back": { + "description": "Generated entry for translation for server strings" + }, + "barbell": "Barra olímpica", + "@barbell": { + "description": "Generated entry for translation for server strings" + }, + "bench": "Banco", + "@bench": { + "description": "Generated entry for translation for server strings" + }, + "biceps": "Bíceps", + "@biceps": { + "description": "Generated entry for translation for server strings" + }, + "body_weight": "Peso corporal", + "@body_weight": { + "description": "Generated entry for translation for server strings" + }, + "calves": "Gémeos", + "@calves": { + "description": "Generated entry for translation for server strings" + }, + "cardio": "Cardio", + "@cardio": { + "description": "Generated entry for translation for server strings" + }, + "chest": "Peito", + "@chest": { + "description": "Generated entry for translation for server strings" + }, + "dumbbell": "Halteres", + "@dumbbell": { + "description": "Generated entry for translation for server strings" + }, + "glutes": "Glúteos", + "@glutes": { + "description": "Generated entry for translation for server strings" + }, + "gym_mat": "Tapete de ginásio", + "@gym_mat": { + "description": "Generated entry for translation for server strings" + }, + "hamstrings": "Isquiotibiais", + "@hamstrings": { + "description": "Generated entry for translation for server strings" + }, + "incline_bench": "Banco inclinado", + "@incline_bench": { + "description": "Generated entry for translation for server strings" + }, + "kettlebell": "Kettlebell", + "@kettlebell": { + "description": "Generated entry for translation for server strings" + }, + "kilometers": "Quilómetros", + "@kilometers": { + "description": "Generated entry for translation for server strings" + }, + "kilometers_per_hour": "Km/h", + "@kilometers_per_hour": { + "description": "Generated entry for translation for server strings" + }, + "lats": "Dorsais", + "@lats": { + "description": "Generated entry for translation for server strings" + }, + "legs": "Pernas", + "@legs": { + "description": "Generated entry for translation for server strings" + }, + "lower_back": "Zona lombar", + "@lower_back": { + "description": "Generated entry for translation for server strings" + }, + "max_reps": "Repetições máximas", + "@max_reps": { + "description": "Generated entry for translation for server strings" + }, + "miles": "Milhas", + "@miles": { + "description": "Generated entry for translation for server strings" + }, + "miles_per_hour": "Mi/h", + "@miles_per_hour": { + "description": "Generated entry for translation for server strings" + }, + "minutes": "Minutos", + "@minutes": { + "description": "Generated entry for translation for server strings" + }, + "plates": "Discos", + "@plates": { + "description": "Generated entry for translation for server strings" + }, + "pull_up_bar": "Barra de elevações", + "@pull_up_bar": { + "description": "Generated entry for translation for server strings" + }, + "quads": "Quadríceps", + "@quads": { + "description": "Generated entry for translation for server strings" + }, + "repetitions": "Repetições", + "@repetitions": { + "description": "Generated entry for translation for server strings" + }, + "resistance_band": "Banda de resistência", + "@resistance_band": { + "description": "Generated entry for translation for server strings" + }, + "sz_bar": "Barra SZ", + "@sz_bar": { + "description": "Generated entry for translation for server strings" + }, + "seconds": "Segundos", + "@seconds": { + "description": "Generated entry for translation for server strings" + }, + "shoulders": "Ombros", + "@shoulders": { + "description": "Generated entry for translation for server strings" + }, + "swiss_ball": "Bola suíça", + "@swiss_ball": { + "description": "Generated entry for translation for server strings" + }, + "triceps": "Tríceps", + "@triceps": { + "description": "Generated entry for translation for server strings" + }, + "until_failure": "Até falhar", + "@until_failure": { + "description": "Generated entry for translation for server strings" + }, + "kg": "kg", + "@kg": { + "description": "Generated entry for translation for server strings" + }, + "lb": "lb", + "@lb": { + "description": "Generated entry for translation for server strings" + }, + "none__bodyweight_exercise_": "nenhum (exercício com peso corporal)", + "@none__bodyweight_exercise_": { + "description": "Generated entry for translation for server strings" + }, + "log": "Registar", + "@log": { + "description": "Log a specific meal (imperative form)" + }, + "done": "Concluído", + "@done": {}, + "overallChangeWeight": "Alteração total", + "@overallChangeWeight": { + "description": "Overall change in weight, added for localization" + }, + "goalTypeMeals": "Das refeições", + "@goalTypeMeals": { + "description": "added for localization of Class GoalType's filed meals" + }, + "goalTypeBasic": "Básico", + "@goalTypeBasic": { + "description": "added for localization of Class GoalType's filed basic" + }, + "goalTypeAdvanced": "Avançado", + "@goalTypeAdvanced": { + "description": "added for localization of Class GoalType's filed advanced" + }, + "indicatorRaw": "cru", + "@indicatorRaw": { + "description": "added for localization of Class Indicator's field text" + }, + "indicatorAvg": "média", + "@indicatorAvg": { + "description": "added for localization of Class Indicator's field text" + }, + "themeMode": "Modo de tema", + "@themeMode": {}, + "darkMode": "Modo escuro sempre", + "@darkMode": {}, + "lightMode": "Modo claro sempre", + "@lightMode": {}, + "systemMode": "Usar definições do sistema", + "@systemMode": {}, + "endDate": "Data de término", + "@endDate": { + "description": "The End date of a nutritional plan" + }, + "startDate": "Data de início", + "@startDate": {}, + "applicationLogs": "Registos da aplicação", + "@applicationLogs": {}, + "creationDate": "Data de início", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Sem fim definido", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" } - }, - "simpleMode": "Modo simples", - "@simpleMode": {}, - "simpleModeHelp": "Esconder opções mais avançadas ao editar exercícios", - "@simpleModeHelp": {}, - "progressionRules": "Este exercício tem regras de progressão e não pode ser editado na app. Usa a versão web para o editar.", - "@progressionRules": {}, - "cacheWarning": "Por causa da cache, pode demorar um pouco até veres as alterações na app.", - "@cacheWarning": {}, - "textPromptTitle": "Pronto para começar?", - "@textPromptTitle": {}, - "textPromptSubheading": "Clica no botão de ação para começar", - "@textPromptSubheading": {}, - "abs": "Abdominais", - "@abs": { - "description": "Generated entry for translation for server strings" - }, - "arms": "Braços", - "@arms": { - "description": "Generated entry for translation for server strings" - }, - "back": "Costas", - "@back": { - "description": "Generated entry for translation for server strings" - }, - "barbell": "Barra olímpica", - "@barbell": { - "description": "Generated entry for translation for server strings" - }, - "bench": "Banco", - "@bench": { - "description": "Generated entry for translation for server strings" - }, - "biceps": "Bíceps", - "@biceps": { - "description": "Generated entry for translation for server strings" - }, - "body_weight": "Peso corporal", - "@body_weight": { - "description": "Generated entry for translation for server strings" - }, - "calves": "Gémeos", - "@calves": { - "description": "Generated entry for translation for server strings" - }, - "cardio": "Cardio", - "@cardio": { - "description": "Generated entry for translation for server strings" - }, - "chest": "Peito", - "@chest": { - "description": "Generated entry for translation for server strings" - }, - "dumbbell": "Halteres", - "@dumbbell": { - "description": "Generated entry for translation for server strings" - }, - "glutes": "Glúteos", - "@glutes": { - "description": "Generated entry for translation for server strings" - }, - "gym_mat": "Tapete de ginásio", - "@gym_mat": { - "description": "Generated entry for translation for server strings" - }, - "hamstrings": "Isquiotibiais", - "@hamstrings": { - "description": "Generated entry for translation for server strings" - }, - "incline_bench": "Banco inclinado", - "@incline_bench": { - "description": "Generated entry for translation for server strings" - }, - "kettlebell": "Kettlebell", - "@kettlebell": { - "description": "Generated entry for translation for server strings" - }, - "kilometers": "Quilómetros", - "@kilometers": { - "description": "Generated entry for translation for server strings" - }, - "kilometers_per_hour": "Km/h", - "@kilometers_per_hour": { - "description": "Generated entry for translation for server strings" - }, - "lats": "Dorsais", - "@lats": { - "description": "Generated entry for translation for server strings" - }, - "legs": "Pernas", - "@legs": { - "description": "Generated entry for translation for server strings" - }, - "lower_back": "Zona lombar", - "@lower_back": { - "description": "Generated entry for translation for server strings" - }, - "max_reps": "Repetições máximas", - "@max_reps": { - "description": "Generated entry for translation for server strings" - }, - "miles": "Milhas", - "@miles": { - "description": "Generated entry for translation for server strings" - }, - "miles_per_hour": "Mi/h", - "@miles_per_hour": { - "description": "Generated entry for translation for server strings" - }, - "minutes": "Minutos", - "@minutes": { - "description": "Generated entry for translation for server strings" - }, - "plates": "Discos", - "@plates": { - "description": "Generated entry for translation for server strings" - }, - "pull_up_bar": "Barra de elevações", - "@pull_up_bar": { - "description": "Generated entry for translation for server strings" - }, - "quads": "Quadríceps", - "@quads": { - "description": "Generated entry for translation for server strings" - }, - "repetitions": "Repetições", - "@repetitions": { - "description": "Generated entry for translation for server strings" - }, - "resistance_band": "Banda de resistência", - "@resistance_band": { - "description": "Generated entry for translation for server strings" - }, - "sz_bar": "Barra SZ", - "@sz_bar": { - "description": "Generated entry for translation for server strings" - }, - "seconds": "Segundos", - "@seconds": { - "description": "Generated entry for translation for server strings" - }, - "shoulders": "Ombros", - "@shoulders": { - "description": "Generated entry for translation for server strings" - }, - "swiss_ball": "Bola suíça", - "@swiss_ball": { - "description": "Generated entry for translation for server strings" - }, - "triceps": "Tríceps", - "@triceps": { - "description": "Generated entry for translation for server strings" - }, - "until_failure": "Até falhar", - "@until_failure": { - "description": "Generated entry for translation for server strings" - }, - "kg": "kg", - "@kg": { - "description": "Generated entry for translation for server strings" - }, - "lb": "lb", - "@lb": { - "description": "Generated entry for translation for server strings" - }, - "none__bodyweight_exercise_": "nenhum (exercício com peso corporal)", - "@none__bodyweight_exercise_": { - "description": "Generated entry for translation for server strings" - }, - "log": "Registar", - "@log": { - "description": "Log a specific meal (imperative form)" - }, - "done": "Concluído", - "@done": {}, - "overallChangeWeight": "Alteração total", - "@overallChangeWeight": { - "description": "Overall change in weight, added for localization" - }, - "goalTypeMeals": "Das refeições", - "@goalTypeMeals": { - "description": "added for localization of Class GoalType's filed meals" - }, - "goalTypeBasic": "Básico", - "@goalTypeBasic": { - "description": "added for localization of Class GoalType's filed basic" - }, - "goalTypeAdvanced": "Avançado", - "@goalTypeAdvanced": { - "description": "added for localization of Class GoalType's filed advanced" - }, - "indicatorRaw": "cru", - "@indicatorRaw": { - "description": "added for localization of Class Indicator's field text" - }, - "indicatorAvg": "média", - "@indicatorAvg": { - "description": "added for localization of Class Indicator's field text" - }, - "themeMode": "Modo de tema", - "@themeMode": {}, - "darkMode": "Modo escuro sempre", - "@darkMode": {}, - "lightMode": "Modo claro sempre", - "@lightMode": {}, - "systemMode": "Usar definições do sistema", - "@systemMode": {} } diff --git a/lib/l10n/app_th.arb b/lib/l10n/app_th.arb index 0967ef424..226ee66e9 100644 --- a/lib/l10n/app_th.arb +++ b/lib/l10n/app_th.arb @@ -1 +1,128 @@ -{} +{ + "userProfile": "โปรไฟล์ของคุณ", + "@userProfile": {}, + "login": "เข้าสู่ระบบ", + "@login": { + "description": "Text for login button" + }, + "logout": "ออกจากระบบ", + "@logout": { + "description": "Text for logout button" + }, + "register": "ลงทะเบียน", + "@register": { + "description": "Text for registration button" + }, + "useDefaultServer": "ใช้เซิร์ฟเวอร์เริ่มต้น", + "@useDefaultServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "useCustomServer": "ใช้เซิร์ฟเวอร์ที่กำหนดเอง", + "@useCustomServer": { + "description": "Toggle button allowing users to switch between the default and a custom wger server" + }, + "invalidUrl": "กรุณาป้อน URL ที่ถูกต้อง", + "@invalidUrl": { + "description": "Error message when the user enters an invalid URL, e.g. in the login form" + }, + "usernameValidChars": "ชื่อผู้ใช้สามารถประกอบด้วยตัวอักษร ตัวเลข และอักขระ @, +, ., - และ _ เท่านั้น", + "@usernameValidChars": { + "description": "Error message when the user tries to register a username with forbidden characters" + }, + "passwordsDontMatch": "รหัสผ่านไม่ตรงกัน", + "@passwordsDontMatch": { + "description": "Error message when the user enters two different passwords during registration" + }, + "passwordTooShort": "รหัสผ่านสั้นเกินไป", + "@passwordTooShort": { + "description": "Error message when the user a password that is too short" + }, + "selectAvailablePlates": "เลือกแผ่นน้ำหนักที่มี", + "@selectAvailablePlates": {}, + "barWeight": "น้ำหนัก Bar", + "@barWeight": {}, + "password": "รหัสผ่าน", + "@password": {}, + "confirmPassword": "ยืนยันรหัสผ่าน", + "@confirmPassword": {}, + "invalidEmail": "กรุณากรอกที่อยู่อีเมลที่ถูกต้อง", + "@invalidEmail": { + "description": "Error message when the user enters an invalid email" + }, + "email": "ที่อยู่อีเมล", + "@email": {}, + "username": "ชื่อผู้ใช้", + "@username": {}, + "invalidUsername": "กรุณากรอกชื่อผู้ใช้ที่ถูกต้อง", + "@invalidUsername": { + "description": "Error message when the user enters an invalid username" + }, + "useApiToken": "ใช้โทเค็น API", + "@useApiToken": {}, + "useUsernameAndPassword": "ใช้ชื่อผู้ใช้และรหัสผ่าน", + "@useUsernameAndPassword": {}, + "apiToken": "โทเค็น API", + "@apiToken": {}, + "invalidApiToken": "กรุณาป้อนรหัส API ที่ถูกต้อง", + "@invalidApiToken": { + "description": "Error message when the user enters an invalid API key" + }, + "apiTokenValidChars": "คีย์ API จะต้องประกอบด้วยตัวอักษร a-f, ตัวเลข 0-9 และมีความยาว 40 อักขระเท่านั้น", + "@apiTokenValidChars": { + "description": "Error message when the user tries to input a API key with forbidden characters" + }, + "customServerHint": "กรอกที่อยู่เซิร์ฟเวอร์ของคุณ มิฉะนั้นจะใช้ค่าเริ่มต้น", + "@customServerHint": { + "description": "Hint text for the form where the users can enter their own wger instance" + }, + "reset": "รีเซ็ต", + "@reset": { + "description": "Button text allowing the user to reset the entered values to the default" + }, + "registerInstead": "ยังไม่มีบัญชีใช่ไหม? ลงทะเบียนเลย", + "@registerInstead": {}, + "loginInstead": "มีบัญชีอยู่แล้ว? เข้าสู่ระบบ", + "@loginInstead": {}, + "labelBottomNavWorkout": "การออกกำลังกาย", + "@labelBottomNavWorkout": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelBottomNavNutrition": "โภชนาการ", + "@labelBottomNavNutrition": { + "description": "Label used in bottom navigation, use a short word" + }, + "labelWorkoutLogs": "ข้อมูลการออกกำลังกาย", + "@labelWorkoutLogs": { + "description": "(Workout) logs" + }, + "labelWorkoutPlan": "แผนการออกกำลังกาย", + "@labelWorkoutPlan": { + "description": "Title for screen workout plan" + }, + "labelDashboard": "แดชบอร์ด", + "@labelDashboard": { + "description": "Title for screen dashboard" + }, + "success": "สำเร็จ", + "@success": { + "description": "Message when an action completed successfully, usually used as a heading" + }, + "successfullyDeleted": "ลบเรียบร้อย", + "@successfullyDeleted": { + "description": "Message when an item was successfully deleted" + }, + "successfullySaved": "บันทึกสำเร็จ", + "@successfullySaved": { + "description": "Message when an item was successfully saved" + }, + "exerciseList": "รายการการออกกำลังกาย", + "@exerciseList": {}, + "exercise": "ออกกำลังกาย", + "@exercise": { + "description": "An exercise for a workout" + }, + "exercises": "ออกกำลังกาย", + "@exercises": { + "description": "Multiple exercises for a workout" + } +} diff --git a/lib/l10n/app_uk.arb b/lib/l10n/app_uk.arb index cd0e249d2..1d88c7680 100644 --- a/lib/l10n/app_uk.arb +++ b/lib/l10n/app_uk.arb @@ -479,6 +479,26 @@ "@chooseFromLibrary": {}, "gallery": "Галерея", "@gallery": {}, + "imageFormatNotSupported": "{imageFormat} не підтримується", + "@imageFormatNotSupported": { + "description": "Label shown on the error container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, + "imageFormatNotSupportedDetail": "Зображення {imageFormat} поки що не підтримуються.", + "@imageFormatNotSupportedDetail": { + "description": "Label shown on the image preview container when image format is not supported", + "type": "text", + "placeholders": { + "imageFormat": { + "type": "String" + } + } + }, "addImage": "Додати зображення", "@addImage": {}, "dataCopied": "Дані скопійовано до нового запису", @@ -1014,5 +1034,133 @@ "startDate": "Дата початку", "@startDate": {}, "applicationLogs": "Журнали програм", - "@applicationLogs": {} + "@applicationLogs": {}, + "creationDate": "Дата початку", + "@creationDate": { + "description": "The Start date of a nutritional plan" + }, + "openEnded": "Відкритий", + "@openEnded": { + "description": "When a nutrition plan has no pre-defined end date" + }, + "overview": "Огляд", + "@overview": {}, + "identicalExercisePleaseDiscard": "Якщо ви помітили вправу, ідентичну тій, яку ви додаєте, будь ласка, відкиньте свій чернетку та відредагуйте цю вправу.", + "@identicalExercisePleaseDiscard": {}, + "checkInformationBeforeSubmitting": "Будь ласка, перевірте правильність введеної вами інформації, перш ніж надсилати вправу", + "@checkInformationBeforeSubmitting": {}, + "enterTextInLanguage": "Будь ласка, введіть текст правильною мовою!", + "@enterTextInLanguage": {}, + "imageDetailsTitle": "Деталі зображення", + "@imageDetailsTitle": { + "description": "Title for image details form" + }, + "imageDetailsLicenseTitle": "Назва", + "@imageDetailsLicenseTitle": { + "description": "Label for image title field" + }, + "imageDetailsLicenseTitleHint": "Введіть назву зображення", + "@imageDetailsLicenseTitleHint": { + "description": "Hint text for image title field" + }, + "imageDetailsSourceLink": "Посилання на веб-сайт джерела", + "@imageDetailsSourceLink": { + "description": "Label for source link field" + }, + "imageDetailsAuthor": "Автор(и)", + "@imageDetailsAuthor": { + "description": "Label for author field" + }, + "imageDetailsAuthorHint": "Введіть ім'я автора", + "@imageDetailsAuthorHint": { + "description": "Hint text for author field" + }, + "imageDetailsAuthorLink": "Посилання на веб-сайт або профіль автора", + "@imageDetailsAuthorLink": { + "description": "Label for author link field" + }, + "imageDetailsDerivativeSource": "Посилання на оригінальне джерело, якщо це похідний твір", + "@imageDetailsDerivativeSource": { + "description": "Label for derivative source field" + }, + "imageDetailsDerivativeHelp": "Похідний твір базується на попередньому творі, але містить достатньо нового, творчого контенту, щоб мати право на власне авторське право.", + "@imageDetailsDerivativeHelp": { + "description": "Helper text explaining derivative works" + }, + "imageDetailsImageType": "Тип зображення", + "@imageDetailsImageType": { + "description": "Label for image type selector" + }, + "imageDetailsLicenseNoticePrefix": "Надсилаючи це зображення, ви погоджуєтеся на його публікацію відповідно до ", + "@imageDetailsLicenseNoticePrefix": { + "description": "First part of license notice text" + }, + "imageDetailsLicenseNoticeSuffix": " Зображення має бути або вашою власною роботою, або автор має опублікувати його за ліцензією, сумісною з CC BY-SA 4.0.", + "@imageDetailsLicenseNoticeSuffix": { + "description": "Second part of license notice text" + }, + "add": "додати", + "@add": { + "description": "Add button text" + }, + "imageDetailsLicenseNotice": "Надсилаючи це зображення, ви погоджуєтеся на його розповсюдження за ліцензією CC-BY-SA-4. Зображення має бути або вашою власною роботою, або автор має опублікувати його за ліцензією, сумісною з нею.", + "@imageDetailsLicenseNotice": {}, + "imageDetailsLicenseNoticeLinkToLicense": "Див. текст ліцензії.", + "@imageDetailsLicenseNoticeLinkToLicense": {}, + "author": "Автор(и)", + "@author": {}, + "authorHint": "Введіть ім'я автора", + "@authorHint": { + "description": "Hint text for author field" + }, + "galleryImageTypeNotSupported": "Зображення типу {imageType} наразі не підтримуються на цій платформі.", + "@galleryImageTypeNotSupported": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "galleryImageTypeNotSupportedDetail": "Це зображення у форматі {imageType}, який наразі не підтримується на цій платформі.", + "@galleryImageTypeNotSupportedDetail": { + "placeholders": { + "imageType": { + "type": "String" + } + } + }, + "dayTypeCustom": "Користувацька", + "@dayTypeCustom": {}, + "dayTypeEnom": "Кожну хвилину за хвилиною", + "@dayTypeEnom": {}, + "dayTypeAmrap": "Якомога більше раундів", + "@dayTypeAmrap": {}, + "dayTypeHiit": "Високоінтенсивне інтервальне тренування", + "@dayTypeHiit": {}, + "dayTypeTabata": "Табата", + "@dayTypeTabata": {}, + "dayTypeEdt": "Збільшення щільності навчання", + "@dayTypeEdt": {}, + "dayTypeRft": "Раунди на час", + "@dayTypeRft": {}, + "dayTypeAfap": "Якомога швидше", + "@dayTypeAfap": {}, + "slotEntryTypeNormal": "Звичайний", + "@slotEntryTypeNormal": {}, + "slotEntryTypeDropset": "Дропсет", + "@slotEntryTypeDropset": {}, + "slotEntryTypeMyo": "Міо", + "@slotEntryTypeMyo": {}, + "slotEntryTypePartial": "Часткове", + "@slotEntryTypePartial": {}, + "slotEntryTypeForced": "Примусово", + "@slotEntryTypeForced": {}, + "slotEntryTypeTut": "Час під Напруги", + "@slotEntryTypeTut": {}, + "slotEntryTypeIso": "Ізометричне утримання", + "@slotEntryTypeIso": {}, + "slotEntryTypeJump": "Стрибок", + "@slotEntryTypeJump": {}, + "endWorkout": "Закінчити тренування", + "@endWorkout": {} } diff --git a/lib/main.dart b/lib/main.dart index 216e881f7..db8836c11 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -146,8 +146,8 @@ class MainApp extends StatelessWidget { future: auth.tryAutoLogin(), builder: (ctx, authResultSnapshot) => authResultSnapshot.connectionState == ConnectionState.waiting - ? const SplashScreen() - : const AuthScreen(), + ? const SplashScreen() + : const AuthScreen(), ); } } diff --git a/lib/models/body_weight/weight_entry.dart b/lib/models/body_weight/weight_entry.dart index 827ccf7db..d5343cd65 100644 --- a/lib/models/body_weight/weight_entry.dart +++ b/lib/models/body_weight/weight_entry.dart @@ -41,10 +41,10 @@ class WeightEntry { } WeightEntry copyWith({int? id, int? weight, DateTime? date}) => WeightEntry( - id: id, - weight: weight ?? this.weight, - date: date ?? this.date, - ); + id: id, + weight: weight ?? this.weight, + date: date ?? this.date, + ); // Boilerplate factory WeightEntry.fromJson(Map json) => _$WeightEntryFromJson(json); diff --git a/lib/models/body_weight/weight_entry.g.dart b/lib/models/body_weight/weight_entry.g.dart index 8295b62be..42281afa2 100644 --- a/lib/models/body_weight/weight_entry.g.dart +++ b/lib/models/body_weight/weight_entry.g.dart @@ -7,10 +7,7 @@ part of 'weight_entry.dart'; // ************************************************************************** WeightEntry _$WeightEntryFromJson(Map json) { - $checkKeys( - json, - requiredKeys: const ['id', 'weight', 'date'], - ); + $checkKeys(json, requiredKeys: const ['id', 'weight', 'date']); return WeightEntry( id: (json['id'] as num?)?.toInt(), weight: stringToNum(json['weight'] as String?), @@ -19,7 +16,7 @@ WeightEntry _$WeightEntryFromJson(Map json) { } Map _$WeightEntryToJson(WeightEntry instance) => { - 'id': instance.id, - 'weight': numToString(instance.weight), - 'date': instance.date.toIso8601String(), - }; + 'id': instance.id, + 'weight': numToString(instance.weight), + 'date': instance.date.toIso8601String(), +}; diff --git a/lib/models/exercises/alias.g.dart b/lib/models/exercises/alias.g.dart index 708ee7ab5..e631ec6e3 100644 --- a/lib/models/exercises/alias.g.dart +++ b/lib/models/exercises/alias.g.dart @@ -7,10 +7,7 @@ part of 'alias.dart'; // ************************************************************************** Alias _$AliasFromJson(Map json) { - $checkKeys( - json, - requiredKeys: const ['id', 'alias'], - ); + $checkKeys(json, requiredKeys: const ['id', 'alias']); return Alias( id: (json['id'] as num?)?.toInt(), translationId: (json['translation'] as num?)?.toInt(), @@ -19,7 +16,7 @@ Alias _$AliasFromJson(Map json) { } Map _$AliasToJson(Alias instance) => { - 'id': instance.id, - 'translation': instance.translationId, - 'alias': instance.alias, - }; + 'id': instance.id, + 'translation': instance.translationId, + 'alias': instance.alias, +}; diff --git a/lib/models/exercises/category.g.dart b/lib/models/exercises/category.g.dart index 098a04897..c79663698 100644 --- a/lib/models/exercises/category.g.dart +++ b/lib/models/exercises/category.g.dart @@ -7,17 +7,11 @@ part of 'category.dart'; // ************************************************************************** ExerciseCategory _$ExerciseCategoryFromJson(Map json) { - $checkKeys( - json, - requiredKeys: const ['id', 'name'], - ); - return ExerciseCategory( - id: (json['id'] as num).toInt(), - name: json['name'] as String, - ); + $checkKeys(json, requiredKeys: const ['id', 'name']); + return ExerciseCategory(id: (json['id'] as num).toInt(), name: json['name'] as String); } Map _$ExerciseCategoryToJson(ExerciseCategory instance) => { - 'id': instance.id, - 'name': instance.name, - }; + 'id': instance.id, + 'name': instance.name, +}; diff --git a/lib/models/exercises/comment.g.dart b/lib/models/exercises/comment.g.dart index f5e502c2b..7cf62d92d 100644 --- a/lib/models/exercises/comment.g.dart +++ b/lib/models/exercises/comment.g.dart @@ -7,10 +7,7 @@ part of 'comment.dart'; // ************************************************************************** Comment _$CommentFromJson(Map json) { - $checkKeys( - json, - requiredKeys: const ['id', 'comment'], - ); + $checkKeys(json, requiredKeys: const ['id', 'comment']); return Comment( id: (json['id'] as num).toInt(), translationId: (json['translation'] as num).toInt(), @@ -19,7 +16,7 @@ Comment _$CommentFromJson(Map json) { } Map _$CommentToJson(Comment instance) => { - 'id': instance.id, - 'translation': instance.translationId, - 'comment': instance.comment, - }; + 'id': instance.id, + 'translation': instance.translationId, + 'comment': instance.comment, +}; diff --git a/lib/models/exercises/equipment.g.dart b/lib/models/exercises/equipment.g.dart index 2c8caa179..b452d40a6 100644 --- a/lib/models/exercises/equipment.g.dart +++ b/lib/models/exercises/equipment.g.dart @@ -7,10 +7,7 @@ part of 'equipment.dart'; // ************************************************************************** Equipment _$EquipmentFromJson(Map json) { - $checkKeys( - json, - requiredKeys: const ['id', 'name'], - ); + $checkKeys(json, requiredKeys: const ['id', 'name']); return Equipment( id: (json['id'] as num).toInt(), name: json['name'] as String, @@ -18,6 +15,6 @@ Equipment _$EquipmentFromJson(Map json) { } Map _$EquipmentToJson(Equipment instance) => { - 'id': instance.id, - 'name': instance.name, - }; + 'id': instance.id, + 'name': instance.name, +}; diff --git a/lib/models/exercises/exercise.dart b/lib/models/exercises/exercise.dart index aae548325..dca5341d0 100644 --- a/lib/models/exercises/exercise.dart +++ b/lib/models/exercises/exercise.dart @@ -144,11 +144,13 @@ class Exercise extends Equatable { this.authorsGlobal = authorsGlobal ?? []; } + bool get showPlateCalculator => equipment.map((e) => e.id).contains(ID_EQUIPMENT_BARBELL); + Exercise.fromApiDataString(String baseData, List languages) - : this.fromApiData(ExerciseApiData.fromString(baseData), languages); + : this.fromApiData(ExerciseApiData.fromString(baseData), languages); Exercise.fromApiDataJson(Map baseData, List languages) - : this.fromApiData(ExerciseApiData.fromJson(baseData), languages); + : this.fromApiData(ExerciseApiData.fromJson(baseData), languages); Exercise.fromApiData(ExerciseApiData exerciseData, List languages) { id = exerciseData.id; @@ -228,13 +230,13 @@ class Exercise extends Equatable { @override List get props => [ - id, - uuid, - created, - lastUpdate, - category, - equipment, - muscles, - musclesSecondary, - ]; + id, + uuid, + created, + lastUpdate, + category, + equipment, + muscles, + musclesSecondary, + ]; } diff --git a/lib/models/exercises/exercise.g.dart b/lib/models/exercises/exercise.g.dart index 5c9fcd4a9..8d68fe3d7 100644 --- a/lib/models/exercises/exercise.g.dart +++ b/lib/models/exercises/exercise.g.dart @@ -19,43 +19,46 @@ Exercise _$ExerciseFromJson(Map json) { 'category', 'muscles', 'muscles_secondary', - 'equipment' + 'equipment', ], ); return Exercise( - id: (json['id'] as num?)?.toInt(), - uuid: json['uuid'] as String?, - created: json['created'] == null ? null : DateTime.parse(json['created'] as String), - lastUpdate: json['last_update'] == null ? null : DateTime.parse(json['last_update'] as String), - lastUpdateGlobal: json['last_update_global'] == null - ? null - : DateTime.parse(json['last_update_global'] as String), - variationId: (json['variations'] as num?)?.toInt(), - translations: (json['translations'] as List?) - ?.map((e) => Translation.fromJson(e as Map)) - .toList(), - category: json['categories'] == null - ? null - : ExerciseCategory.fromJson(json['categories'] as Map), - ) + id: (json['id'] as num?)?.toInt(), + uuid: json['uuid'] as String?, + created: json['created'] == null ? null : DateTime.parse(json['created'] as String), + lastUpdate: json['last_update'] == null + ? null + : DateTime.parse(json['last_update'] as String), + lastUpdateGlobal: json['last_update_global'] == null + ? null + : DateTime.parse(json['last_update_global'] as String), + variationId: (json['variations'] as num?)?.toInt(), + translations: (json['translations'] as List?) + ?.map((e) => Translation.fromJson(e as Map)) + .toList(), + category: json['categories'] == null + ? null + : ExerciseCategory.fromJson(json['categories'] as Map), + ) ..categoryId = (json['category'] as num).toInt() ..musclesIds = (json['muscles'] as List).map((e) => (e as num).toInt()).toList() - ..musclesSecondaryIds = - (json['muscles_secondary'] as List).map((e) => (e as num).toInt()).toList() + ..musclesSecondaryIds = (json['muscles_secondary'] as List) + .map((e) => (e as num).toInt()) + .toList() ..equipmentIds = (json['equipment'] as List).map((e) => (e as num).toInt()).toList(); } Map _$ExerciseToJson(Exercise instance) => { - 'id': instance.id, - 'uuid': instance.uuid, - 'variations': instance.variationId, - 'created': instance.created?.toIso8601String(), - 'last_update': instance.lastUpdate?.toIso8601String(), - 'last_update_global': instance.lastUpdateGlobal?.toIso8601String(), - 'category': instance.categoryId, - 'categories': instance.category?.toJson(), - 'muscles': instance.musclesIds, - 'muscles_secondary': instance.musclesSecondaryIds, - 'musclesSecondary': instance.musclesSecondary.map((e) => e.toJson()).toList(), - 'equipment': instance.equipmentIds, - }; + 'id': instance.id, + 'uuid': instance.uuid, + 'variations': instance.variationId, + 'created': instance.created?.toIso8601String(), + 'last_update': instance.lastUpdate?.toIso8601String(), + 'last_update_global': instance.lastUpdateGlobal?.toIso8601String(), + 'category': instance.categoryId, + 'categories': instance.category?.toJson(), + 'muscles': instance.musclesIds, + 'muscles_secondary': instance.musclesSecondaryIds, + 'musclesSecondary': instance.musclesSecondary.map((e) => e.toJson()).toList(), + 'equipment': instance.equipmentIds, +}; diff --git a/lib/models/exercises/exercise_api.freezed.dart b/lib/models/exercises/exercise_api.freezed.dart index 85554ce89..e3959c069 100644 --- a/lib/models/exercises/exercise_api.freezed.dart +++ b/lib/models/exercises/exercise_api.freezed.dart @@ -11,35 +11,37 @@ part of 'exercise_api.dart'; // dart format off T _$identity(T value) => value; + ExerciseApiData _$ExerciseApiDataFromJson(Map json) { - return _ExerciseBaseData.fromJson(json); + return _ExerciseBaseData.fromJson( + json + ); } /// @nodoc mixin _$ExerciseApiData { + int get id; + String get uuid; // ignore: invalid_annotation_target - @JsonKey(name: 'variations') - int? get variationId; // ignore: invalid_annotation_target - @JsonKey(name: 'created') - DateTime get created; // ignore: invalid_annotation_target - @JsonKey(name: 'last_update') - DateTime get lastUpdate; // ignore: invalid_annotation_target - @JsonKey(name: 'last_update_global') - DateTime get lastUpdateGlobal; + @JsonKey(name: 'variations') int? get variationId; // ignore: invalid_annotation_target + @JsonKey(name: 'created') DateTime get created; // ignore: invalid_annotation_target + @JsonKey(name: 'last_update') DateTime get lastUpdate; // ignore: invalid_annotation_target + @JsonKey(name: 'last_update_global') DateTime get lastUpdateGlobal; + ExerciseCategory get category; + List get muscles; // ignore: invalid_annotation_target - @JsonKey(name: 'muscles_secondary') - List get musclesSecondary; // ignore: invalid_annotation_target + @JsonKey(name: 'muscles_secondary') List< + Muscle> get musclesSecondary; // ignore: invalid_annotation_target List get equipment; // ignore: invalid_annotation_target - @JsonKey(name: 'translations', defaultValue: []) - List get translations; + @JsonKey(name: 'translations', defaultValue: []) List get translations; + List get images; + List