Skip to content

Commit 3bc98e8

Browse files
committed
docs: updated build how to
1 parent 70a8191 commit 3bc98e8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build/How-To.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
## Steps to pre setup the language files and pre compute as many things as possible.
22

3-
- Run the step_1.php to create the languages directory and files.
4-
- run the step_2.php to create countryToSupportedLanguageCodes array.
5-
- run the step_3.php to list all the three letter codes that are not added in the countryToSupportedLanguageCodes array.
6-
- create a separate file where they are stored in countryToSupportedLanguageCodes.
7-
- manually add them to the countryToSupportedLanguageCodes array using https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes &&
8-
Then run step_2.php again.
3+
Follow these instructions if there is a new commit in the [List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words_V2](https://github.com/LDNOOBWV2/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words_V2.git):
4+
5+
- Run the [step_1.php](https://github.com/friendshipking/profanity_php/blob/main/build/step_1.php) to create the `languages` directory and files.
6+
- Run the [step_2.php](https://github.com/friendshipking/profanity_php/blob/main/build/step_2.php) to create the `countryToSupportedLanguageCodes` array.
7+
- Run the [step_3.php](https://github.com/friendshipking/profanity_php/blob/main/build/step_3.php) to list all the three-letter codes that are not added to the `countryToSupportedLanguageCodes` array. If there is no output, you are good to go. Otherwise:
8+
- Use the AI prompt inside [three_letter_codes.php](https://github.com/friendshipking/profanity_php/blob/main/build/three_letter_codes.php) file to generate the array. Replace the existing array in the file. If Bing is unable to get the language, use this [link](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) to get the language code. After adding the array, run [step_2.php](https://github.com/friendshipking/profanity_php/blob/main/build/step_2.php) again.
99
- All required files are successfully generated.
10-
- test the setup by running the test.php file.
10+
- Test the setup by running the [test.php](https://github.com/friendshipking/profanity_php/blob/main/test.php) file.
11+
- Commit the changes and create a pull request to the main repo. This ensures that the library is up to date with the latest changes in [List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words_V2](https://github.com/LDNOOBWV2/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words_V2.git).

0 commit comments

Comments
 (0)