JOHANNESBURG — Dirk Nowitzki stood in front of some Kenyan journalists and tried to impress them in their native language during Basketball Without Borders last week. Let’s just say his Swahili needs some work.

“I saw some media members I’ve talked to before [from Kenya] and I tried some Swahili on them,” Nowitzki said. “It really didn’t go that well. But Kenya is into other sports. Soccer, cricket and rugby are really big. Basketball is not really their go-to sport.”

So why is the longtime Dallas Mavericks star speaking Swahili?

The connection is Nowitzki’s wife, Jessica. She was born Jessica Olsson to a Swedish father and a Kenyan mother. Her mother is from Nanyuki, Kenya, a market town northwest of Mount Kenya that was founded by British settlers and is the home of the Kenya Air Force. The Nowitzkis had wedding ceremonies in Germany and Kenya in 2012 and have three young children now.

Nowitzki has made several trips to Africa, and his family went to Kenya to visit his wife’s family before arriving in South Africa for the NBA Africa Game and Basketball Without Borders.

“We went to Kenya for eight days,” Nowitzki said. “We saw most of her family, traveled a little bit, saw a safari. We brought the whole family. We’re going to Europe for a bit. It’s hard traveling with three young kids: 4, 2 and 9 months. We’ve been traveling for a month. Germany, Sweden and now here.”

Nowitzki was a member of Team World during the second NBA Africa Game on Saturday. During a dinner for both teams earlier in the week, his wife joked that she wanted to sit with Team Africa, he said. Nowitzki scored three points, on a 3-pointer, in 11 minutes as Team World beat Team Africa, 108-97. He hoped that some of his wife’s relatives in Kenya watched the exhibition.

“Kenya, basketball is not that big,” Nowitzki said. “Not as big as here, Senegal or Nigeria. It’s not as big of a deal. But [Jessica’s family] obviously know who I am and respect what I do. I heard the game might be broadcast in most of Africa. I’m not sure if they can watch it in Kenya.”

Before the NBA Africa Game, the 15th edition of Basketball Without Borders in Africa took place Aug. 1-5 at the American International School of Johannesburg. The invitation-only camp featured the top 80 boys and girls age 17 and under from 26 African countries.

Nowitzki attended Basketball Without Borders in Africa for the third time. He saw a young Gorgui Dieng, now with the Minnesota Timberwolves, in a previous camp. The MVP of the 2011 NBA Finals said it was a pleasure for him to be a part of this camp, which included one kid from Kenya after three the previous year.

“Basketball Without Borders is now in the 15th year, and they’ve not only done a good job with the kids but with the social outreach and the projects they have with the families and kids they help,” Nowitzki said. “It’s an amazing project. … It’s actually getting stronger and stronger. Bigger facilities. There was so much media today. When I was here [in 2009], there was nobody here. It shows it’s growing even more.

“The talent has never been the problem. There are so many athletes, length and size. But the fundamentals, shooting and understanding of the game [are lacking].”

During his week in Johannesburg, Nowitzki also befriended other players whom he rarely mingles with during the season, since he stays focused on the Mavericks. The 2007 NBA MVP worked out one morning on the court before the camp with New York Knicks forward Kristaps Porzingis. Nowitzki also had a long conversation with Denver Nuggets guard and Dallas native Emmanuel Mudiay during one of the camp days. He chopped it up with New Orleans Pelicans All-Star center DeMarcus Cousins on the bench during the NBA Africa Game.

“You get to play and get to know some of these guys you usually don’t get a chance to mingle with or talk to. I talked to Emmanuel Mudiay about Dallas,” Nowitzki said. “During the season, I pretty much stay to my side. It’s fun for me to get to know some of these guys.”

Nowitzki agreed to a two-year, $10 million contract with the Mavericks last month. The 13-time NBA All-Star has scored 30,260 points during his 18-year NBA career. Nowitzki averaged 14.2 points and 6.5 rebounds per game in 54 contests last season. The 7-footer turns 40 on June 19, 2018.

The projected Hall of Famer is not certain whether he will play during both of his contract seasons. Once Nowitzki retires, he expects to spend more time in Kenya and possibly purchase a home there.

“I signed on for two more, so hopefully I can play those two,” Nowitzki said. “Last year with the Achilles [injury], I missed almost two months. It was frustrating and disappointing. Hopefully, injurywise it will be a lot better this season and maybe I’ll play another one. We will see how it goes this [season]. We will see how the body feels.

“As long as I enjoy competing and enjoy the games. … So many practices are tough to motivate yourself for. Games will always be fun. Competing will always be fun.”

The Mavericks also return forward Harrison Barnes and shooting guard Wes Matthews. Heralded rookie point guard Dennis Smith had a strong summer league performance. Still up in the air is the future of center Nerlens Noel, who was acquired in a trade last season from the Philadelphia 76ers. The 6-foot-11, 228-pounder averaged 8.5 points, 6.8 rebounds and 1.0 blocks in 22 games with the Mavericks last season.

Noel is a restricted free agent who has yet to sign with any team. If he were to sign a contract sheet with another team, the Mavericks would have the opportunity to match.

“He’s so young and so athletic. I’d love to keep him,” Nowitzki said. “I’m sure that is what the Mavs are thinking. … We obviously traded for him last year with the hope he will stay with this franchise for a long time.

“I understand the business side of it. He’s a restricted free agent. I’m sure [Mavericks owner] Mark [Cuban] and [general manager] Donnie [Nelson], the leaders of the franchise, are trying to play the right business move. We’ll have to wait to see how it all ends up.”