Hướng dẫn what is php gettext? - php gettext là gì?

  • Giới thiệu
  • Installing/Configuring
    • Yêu cầu
    • Cài đặt
    • Cấu hình thời gian chạy
    • Loại tài nguyên
  • Hằng số được xác định trước
  • Chức năng GetText
    • BIND_TEXTDOMAIN_CODESET - Chỉ định hoặc nhận mã hóa ký tự trong đó các tin nhắn từ danh mục tin nhắn miền sẽ được trả về
    • BINDTEXTDOMAIN - Bộ hoặc nhận đường dẫn cho một miền
    • dcgettext - ghi đè miền cho một lần tra cứu duy nhất
    • dcngettext - phiên bản số nhiều của dcgettext
    • dgettext - ghi đè miền hiện tại
    • dngetText - phiên bản số nhiều của dgettext
    • GetText - Tra cứu một thông báo trong miền hiện tại
    • ngetText - phiên bản số nhiều của gettext
    • Textdomain - Đặt miền mặc định

Marioandrea Dot Petruccelli tại Gmail Dot Com ¶

4 năm trước

How to use gettext on Windows.

If you use Linux start from the step 2 and consider cmd as linux shell.

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html

       Check all options during the installation and go on.

2] Create a index.php file into your website directory with this code inside:

    

3] Open cmd and move into your website folder using cd

4] Now create the .mo files directly from the php files using this command
    xgettext -n index.php

       Use xgettext -help to see how to include more php files.

5] Once finished will be generate a file called messages.mo. Now you have to set the language and the charset. Open messages.mo with notepad and edit the lines:

- "Language: \n" BECOMES "Language fr\n"
- "Content-Type: text/plain; charset=CHARSET\n" BECOMES "Content-Type: text/plain; charset=UTF-8\n"

If you use Linux start from the step 2 and consider cmd as linux shell.0

If you use Linux start from the step 2 and consider cmd as linux shell.1

If you use Linux start from the step 2 and consider cmd as linux shell.2

If you use Linux start from the step 2 and consider cmd as linux shell.3

If you use Linux start from the step 2 and consider cmd as linux shell.4

If you use Linux start from the step 2 and consider cmd as linux shell.5

If you use Linux start from the step 2 and consider cmd as linux shell.6

If you use Linux start from the step 2 and consider cmd as linux shell.7

If you use Linux start from the step 2 and consider cmd as linux shell.8

If you use Linux start from the step 2 and consider cmd as linux shell.9

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
0

jpatokal tại iki dot fi ¶

13 năm trước

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
1

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
2

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
3

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
4

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
5

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
6

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
7

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
8

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
9

sasq1 tại go2 dot pl ¶

13 năm trước

       Check all options during the installation and go on.0

       Check all options during the installation and go on.1

       Check all options during the installation and go on.2

       Check all options during the installation and go on.3

       Check all options during the installation and go on.4

       Check all options during the installation and go on.5

sasq1 tại go2 dot pl ¶

13 năm trước

       Check all options during the installation and go on.6

       Check all options during the installation and go on.7

       Check all options during the installation and go on.8

       Check all options during the installation and go on.9

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
9

sasq1 tại go2 dot pl ¶

13 năm trước

2] Create a index.php file into your website directory with this code inside:1

2] Create a index.php file into your website directory with this code inside:2

2] Create a index.php file into your website directory with this code inside:3

2] Create a index.php file into your website directory with this code inside:4

2] Create a index.php file into your website directory with this code inside:5

2] Create a index.php file into your website directory with this code inside:6

2] Create a index.php file into your website directory with this code inside:7

2] Create a index.php file into your website directory with this code inside:8

2] Create a index.php file into your website directory with this code inside:9

sasq1 tại go2 dot pl ¶

Rainwalker tại Seznam dot cz ¶

    

3] Open cmd and move into your website folder using cd
0

Yuricardenas tại Gmail Dot Com ¶

Johnny ¶

    

3] Open cmd and move into your website folder using cd
1

8 năm trước

PHP tại DeviceNull Dot org ¶

    

3] Open cmd and move into your website folder using cd
2

    

3] Open cmd and move into your website folder using cd
3

    

3] Open cmd and move into your website folder using cd
4

14 năm trước

4 năm trước

    

3] Open cmd and move into your website folder using cd
5

    

3] Open cmd and move into your website folder using cd
6

    

3] Open cmd and move into your website folder using cd
7

    

3] Open cmd and move into your website folder using cd
8

    

3] Open cmd and move into your website folder using cd
9

4] Now create the .mo files directly from the php files using this command
    xgettext -n index.php
0

1] First you have to download and install this
      //mlocati.github.io/articles/gettext-iconv-windows.html
9

    

3] Open cmd and move into your website folder using cd

4 năm trước

4] Now create the .mo files directly from the php files using this command
    xgettext -n index.php
2

    

3] Open cmd and move into your website folder using cd

jpatokal tại iki dot fi ¶

4] Now create the .mo files directly from the php files using this command
    xgettext -n index.php
3

Bài Viết Liên Quan

Chủ Đề