Giter Club home page Giter Club logo

translations's Introduction

CodeIgniter 4 Development

PHPUnit PHPStan Psalm Coverage Status Downloads GitHub release (latest by date) GitHub stars GitHub license contributions welcome

What is CodeIgniter?

CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More information can be found at the official site.

This repository holds the source code for CodeIgniter 4 only. Version 4 is a complete rewrite to bring the quality and the code into a more modern version, while still keeping as many of the things intact that has made people love the framework over the years.

More information about the plans for version 4 can be found in CodeIgniter 4 on the forums.

Documentation

The User Guide is the primary documentation for CodeIgniter 4.

You will also find the current in-progress User Guide. As with the rest of the framework, it is a work in progress, and will see changes over time to structure, explanations, etc.

You might also be interested in the API documentation for the framework components.

Important Change with index.php

index.php is no longer in the root of the project! It has been moved inside the public folder, for better security and separation of components.

This means that you should configure your web server to "point" to your project's public folder, and not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter public/..., as the rest of your logic and the framework are exposed.

Please read the user guide for a better explanation of how CI4 works!

Repository Management

CodeIgniter is developed completely on a volunteer basis. As such, please give up to 7 days for your issues to be reviewed. If you haven't heard from one of the team in that time period, feel free to leave a comment on the issue so that it gets brought back to our attention.

Important

We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.

If you raise an issue here that pertains to support or a feature request, it will be closed! If you are not sure if you have found a bug, raise a thread on the forum first - someone else may have encountered the same thing.

Before raising a new GitHub issue, please check that your bug hasn't already been reported or fixed.

We use pull requests (PRs) for CONTRIBUTIONS to the repository. We are looking for contributions that address one of the reported bugs or approved work packages.

Do not use a PR as a form of feature request. Unsolicited contributions will only be considered if they fit nicely into the framework roadmap. Remember that some components that were part of CodeIgniter 3 are being moved to optional packages, with their own repository.

Contributing

We are accepting contributions from the community! It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome.

Please read the Contributing to CodeIgniter.

CodeIgniter has had thousands on contributions from people since its creation. This project would not be what it is without them.

Made with contrib.rocks.

Server Requirements

PHP version 8.1 or higher is required, with the following extensions installed:

Warning

  • The end of life date for PHP 7.4 was November 28, 2022.
  • The end of life date for PHP 8.0 was November 26, 2023.
  • If you are still using PHP 7.4 or 8.0, you should upgrade immediately.
  • The end of life date for PHP 8.1 will be December 31, 2025.

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • mysqlnd if you plan to use MySQL
  • libcurl if you plan to use the HTTP\CURLRequest library

Running CodeIgniter Tests

Information on running the CodeIgniter test suite can be found in the README.md file in the tests directory.

translations's People

Contributors

amuratet avatar bangbangda avatar camilocaquimbo avatar datamweb avatar davislasis avatar ddevsr avatar dependabot[bot] avatar dgvirtual avatar jbotka avatar jim-parry avatar kenjis avatar lonnieezell avatar matussopko avatar michalsn avatar monkenwu avatar mpmont avatar muh-ramadhan avatar natanfelles avatar nebojsajsimic avatar npwsamarasinghe avatar paulbalandan avatar rakheshthayyur avatar ridho1991 avatar sba avatar smhnaji avatar tangix avatar terrorboy avatar timothy-y-h-lee avatar totoprayogo1916 avatar yufieko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

translations's Issues

English is missing!

I saw and English is missing! Please add it.
Soon I will add Urdu, after I see the English version.

[HELP WANTED]: Update language strings to latest develop

With the merge of #144 , language strings for translation are kept up to date with codeigniter4/codeigniter4 repo. Originally, this was with codeigniter4/framework so the strings were updated up to the recent release v4.0.4.

We are recruiting the help from the community as well as the maintainers of the locales to update the translation sets with the language strings from the main repo. You can read on the latest Contributing guide and how to run the specific locale tests in the Test README.

Checklist of Completed Locales

  • ar | Arabic
  • cs | Czech
  • de | German
  • es | Spanish
  • fa | Farsi
  • fr | French
  • id | Indonesian
  • it | Italian
  • ja | Japanese
  • ko | Korean
  • lt | Lithuanian
  • lv | Latvian
  • ml | Malayalam
  • nl | Dutch
  • no | Norwegian
  • pl | Polish
  • pt | Portuguese
  • pt-BR | Brazilian
  • ru | Russian
  • si | Sinhala
  • sk | Slovak
  • sv-SE | Swedish - Sweden
  • tr | Turkish
  • uk | Ukrainian
  • vi | Vietnamese
  • zh-CN | Simple Chinese
  • zh-TW | Traditional Chinese

Please link your PRs here so we can keep track of the progress.

Italian language Time.php

CodeIngiter 4.1.5
Translations 4.1.5

I found a translation error for the IT language (Italian).
Inside the file 'system\Language\it\Time.php' (ITALIAN) there are some voices in English.

ERRATA:

'years'          => '{0, plural, =1{# year} other{# years}}',
'months'         => '{0, plural, =1{# month} other{# months}}',
'weeks'          => '{0, plural, =1{# week} other{# weeks}}',
'days'           => '{0, plural, =1{# day} other{# days}}',
'hours'          => '{0, plural, =1{# hour} other{# hours}}',
'minutes'        => '{0, plural, =1{# minute} other{# minutes}}',
'seconds'        => '{0, plural, =1{# second} other{# seconds}}',

CORRIGE:

'years'          => '{0, plural, =1{# anno} other{# anni}}',
'months'         => '{0, plural, =1{# mese} other{# mesi}}',
'weeks'          => '{0, plural, =1{# settimana} other{# settimane}}',
'days'           => '{0, plural, =1{# giorno} other{# giorni}}',
'hours'          => '{0, plural, =1{# ora} other{# ore}}',
'minutes'        => '{0, plural, =1{# minuto} other{# minuti}}',
'seconds'        => '{0, plural, =1{# secondo} other{# secondi}}',

TO TEST:

echo "<br>" . lang('Time.years', [1], 'en');	
echo "<br>" . lang('Time.years', [9], 'en');				
echo "<br>" . lang('Time.years', [1], 'it');			
echo "<br>" . lang('Time.years', [9], 'it');	

Output BEFORE correction:

1 year
9 years
1 year
9 years

Output AFTER correction:

1 year
9 years
1 anno
9 anni

Greetings
Danilo

Dev: `composer update` in GitHub Actions always fail

Run composer update --ansi
Loading composer repositories with package information
Error: Could not authenticate against github.com

In AuthHelper.php line 132:
                                             
  Could not authenticate against github.com  
                                             

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>...]

Error: Process completed with exit code 255.

https://github.com/codeigniter4/translations/actions/runs/6407644149/job/17394869633?pr=407

Time class: undefined methods

CodeIngiter 4.1.5

In the online documentation there are these examples:
https://codeigniter.com/user_guide/libraries/time.html

$time = $time->setYear(2017);
$time = $time->setMonthNumber(4); // April
$time = $time->setMonthLongName('April');
$time = $time->setMonthShortName('Feb'); // February
$time = $time->setDay(25);
$time = $time->setHour(14); // 2:00 pm
$time = $time->setMinute(30);
$time = $time->setSecond(54);

But these methods are missing in the Time class:

Call to undefined method CodeIgniter\I18n\Time::setMonthShortName() 
Call to undefined method CodeIgniter\I18n\Time::setMonthLongName()
Call to undefined method CodeIgniter\I18n\Time::setMonthNumber()

In fact, I don't see them in the file: system\I18n\Time.php

Greetings
Danilo

Translations are not loaded from this repository

#144 changes the namespace.

    "autoload": {
        "psr-4": {
-           "Translations\\": ""
+           "CodeIgniter\\Language\\": "Language/"
        }
    },

It causes translations are not loaded from this repository, like codeigniter4/CodeIgniter4#2120.

This is because the new namespace is:

prefix: CodeIgniter\Language
  path: vendor/composer/../codeigniter4/translations/Language/

When CI looks for Language/it/Validation.php, Language::requireFile() and Services::locator()->search() looks for codeigniter4/translations/Language/Language/it/Validation.php. And it can't find the lang file.

Test cannot detect missing lang item in array

CLI.generator.viewName.cell is missing in ja, but tests pass.
See https://codeigniter4.github.io/translations/ja.html

en:

return [
    'altCommandPlural'   => 'Did you mean one of these?',
    'altCommandSingular' => 'Did you mean this?',
    'commandNotFound'    => 'Command "{0}" not found.',
    'generator'          => [
        // ...
        'usingCINamespace' => 'Warning: Using the "CodeIgniter" namespace will generate the file in the system directory.',
        'viewName'         => [
            'cell' => 'Cell view name',
        ],
    ],
    // ...

ja:

return [
    'altCommandPlural'   => 'この中の1つですか?', // 'Did you mean one of these?'
    'altCommandSingular' => 'これですか?', // 'Did you mean this?'
    'commandNotFound'    => '"{0}" というコマンドはありません。', // 'Command "{0}" not found.'
    'generator'          => [
        // ...
        'usingCINamespace' => '警告: 名前空間 "CodeIgniter" を使用するとsystemディレクトリにファイルが生成されます。', // 'Warning: Using the "CodeIgniter" namespace will generate the file in the system directory.'
    ],
    // ...

German translation of Pager is mixed up

In the German (de) file for Pager.php the values of previous and last are mixed up.

Current implementation:

'first'                  => 'Erste',
'previous'               => 'Letzte',
'next'                   => 'Weiter',
'last'                   => 'Zurück',

Corrected:

'first'                  => 'Erste',
'previous'               => 'Zurück',
'next'                   => 'Weiter',
'last'                   => 'Letzte',

Translation messages need single quotes

This came up in the main repo: lang() requires single quotes in order to parse bracketed indexes.

In the "en" translation set, there are four affected messages:
Enryption::unKnownHandler. RESTful::notImplemented,
Session::invalidSavePath, and Session::writeProtectedSavePath

"Test Classes" do not conform to the psr-4 automatic loading standard

When executing the installation via composer using the parameters -a or -o I get the following message:

Environment:

  • OS: Windows 10
  • PHP: 7.4.19
  • Composer: 2.0.13
  • codeigniter4/framework v4.1.2
  • codeigniter4/translations v4.1.1

Steps for reproduction:

1 - Add translation

composer require codeigniter4/translations 

2 - add this option option in composer.json or perform the installation with the parameters

"config": {
        "optimize-autoloader":true
}

+

composer i 

or

composer i -a

Output:

Generating optimized autoload files
Class Translations\Tests\AbstractTranslationTestCase located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\AbstractTranslationTestCase.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\ArabicTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\ArabicTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\BrazilianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\BrazilianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\CzechTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\CzechTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\DutchTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\DutchTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\FarsiTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\FarsiTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\FrenchTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\FrenchTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\GermanTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\GermanTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\IndonesianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\IndonesianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\ItalianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\ItalianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\JapaneseTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\JapaneseTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\KoreanTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\KoreanTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\LatvianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\LatvianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\LithuanianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\LithuanianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\MalayalamTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\MalayalamTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\NorwegianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\NorwegianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\PolishTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\PolishTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\PortugueseTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\PortugueseTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\RussianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\RussianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\SimpleChineseTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\SimpleChineseTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\SinhalaTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\SinhalaTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\SlovakTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\SlovakTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\SpanishTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\SpanishTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\SwedishTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\SwedishTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\TraditionalChineseTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\TraditionalChineseTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\TurkishTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\TurkishTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\UkrainianTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\UkrainianTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.
Class Translations\Tests\VietnameseTranslationTest located in C:/appfolder/vendor/codeigniter4/translations\Tests\Language\VietnameseTranslationTest.php does not comply with psr-4 autoloading standard. Skipping.

Russian language

Hi
There were inaccuracies in the translation into Russian.
Here is a file with a more accurate description of the time in Russian)
Time.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.