matomo-org / matomo-org/plugin-SecurityInfo

Add a second language with "en" by default

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
24
Forks
17
Avg merge
13h 14m
Merged PRs (30d)
5

Description

With this option, you can translate phpsecinfo with a second language

Example, add "it"

If a test code was translate with a new language line, "it" , then, the new language "it" define by defaut work. If "it" is define by defaut, but, a test code not translate, then, "en" work.

PhpSecInfo can now use a lot of language :
fr / en
it / en
de / en
...

Select your language and translate all test language line ( 3 or 4 line ) with the new language code. Else, english work always.

https://github.com/ZerooCool/phpsecinfo/commit/f74e518fcf708b2f65211f6d08c400ae4f65a3c2
+ i add this variable in Test.php before the code for translation.

```
public $langue_defaut;
public $langue_definie;
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Test.php and the referenced commit to understand the existing language variables and translation lines. Add the default-language behavior so translated lines use the selected language while untranslated lines fall back to English, then verify the existing language cases including fr, it, and de.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
internationalization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.