Skip to content

Commit 1e0157f

Browse files
authored
Corrected namespace for Language class in docs.
The docs referenced the wrong namespace for the Language class. It said ``PhpOffice\PhpWord\ComplexType\Language``, but there's no Language class in the namespace ``PhpOffice\PhpWord\ComplexType``. I searched in the tests to figure out where the Language class has moved to and found in ``PhpOffice\PhpWord\Writer\Word2007\Part\SettingsTest::testLanguage()`` this had to be ``PhpOffice\PhpWord\Style\Language``.
1 parent 1bd7cd6 commit 1e0157f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The default language of the document can be change with the following.
228228
$phpWord->getSettings()->setThemeFontLang(new Language(Language::FR_BE));
229229
230230
``Language`` has 3 parameters, one for Latin languages, one for East Asian languages and one for Complex (Bi-Directional) languages.
231-
A couple of language codes are provided in the ``PhpOffice\PhpWord\ComplexType\Language`` class but any valid code/ID can be used.
231+
A couple of language codes are provided in the ``PhpOffice\PhpWord\Style\Language`` class but any valid code/ID can be used.
232232

233233
In case you are generating an RTF document the language need to be set differently.
234234

0 commit comments

Comments
 (0)