more i18n stuff
This commit is contained in:
parent
0848412aa0
commit
78797c680f
@ -634,7 +634,11 @@ func (self *thread) Board() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *thread) BoardURL() string {
|
func (self *thread) BoardURL() string {
|
||||||
return fmt.Sprintf("%sb/%s/", self.Prefix(), self.Board())
|
i18n := self._i18n
|
||||||
|
if i18n == nil {
|
||||||
|
i18n = I18nProvider
|
||||||
|
}
|
||||||
|
return fmt.Sprintf("%sb/%s/?lang=%s", self.Prefix(), self.Board(), i18n.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *thread) PostCount() int {
|
func (self *thread) PostCount() int {
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<h2><a href="{{thread.Prefix}}?lang={{i18n.Name}}">CHANGOLIA</a></h2>
|
<h2><a href="{{thread.Prefix}}?lang={{i18n.Name}}">CHANGOLIA</a></h2>
|
||||||
<b>Most of the rest of the wild west.</b>
|
<b>Most of the rest of the wild west.</b>
|
||||||
</div>
|
</div>
|
||||||
<center><b><a href="{{thread.BoardURL}}?lang={{i18n.Name}}">{{thread.Board}}</a></b></center>
|
<center><b><a href="{{thread.BoardURL}}">{{thread.Board}}</a></b></center>
|
||||||
<br />
|
<br />
|
||||||
{{{form}}}
|
{{{form}}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user