[Bug 255702] Redundant/incorrect dot on fr, ja, zh-cn, zh-tw homepages

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 8 09:49:16 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255702

            Bug ID: 255702
           Summary: Redundant/incorrect dot on fr, ja, zh-cn, zh-tw
                    homepages
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: ygy at freebsd.org

For the homepage, the "freebsdDescription"s are assembled in index.html where
only the period after freebsdDescription2 is included in the template:

          <h1>{{ i18n "freebsdProject" }}</h1>
          <p>
            {{ i18n "freebsdDescription1" }}
            <a href={{ "platforms/" | absLangURL }}>{{ i18n
"freebsdDescription2" }}</a>.
            {{ i18n "freebsdDescription3" }}
            <a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang
"/articles/contributors/#staff-committers/" }}>{{ i18n "freebsdDescription4"
}}</a>
            {{ i18n "freebsdDescription5" }}
            <a href={{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang
"/books/handbook/introduction/#introduction-nutshell-users" }}>{{ i18n
"freebsdDescription6" }}</a>
            {{ i18n "freebsdDescription7" }}
          </p>

This is not fine for all the languages where the period is something else (e.g.
zh-cn, zh-tw and also fr etc.):

FreeBSD 是一个适用于现代服务器、桌面与嵌入式 平台. 的操作系统, 由一个庞大的 开发人员团队 持续开发超过三十年。 FreeBSD
先进的网络、安全性和存储方面的特色使得它成为许多 大型网站 以及最普遍的嵌入式网络与存储设备的平台选择。

So there are 2 ways of solving this:

1. Let the "user" (i.e. toml files) handle the punctuation completely. This is
a quick fix:

[freebsdDescription3]
-other = "A large"
+other = ". A large"

2. On a second thought, dividing the freebsdDescription into elements may not
make much sense, even so when I work on zh-cn where the order of sentence
elements are different. It also introduces problems when we update en version +
the template only, and the template may no longer suitable for outdated
language versions.

So for a more permanent fix I purpose to have only one freebsdDescription and
let each language teams handle the rest. WDYT?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list